From 938461cc65c09a5237cc9b7245c4f503ec3977fe Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 31 Jan 2025 09:01:56 +1100 Subject: [PATCH] psbt: Use Amount::ZERO in unit test We have a const for this, use it. Internal change only. --- bitcoin/src/psbt/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/psbt/mod.rs b/bitcoin/src/psbt/mod.rs index f10cbbb32..b2787d73e 100644 --- a/bitcoin/src/psbt/mod.rs +++ b/bitcoin/src/psbt/mod.rs @@ -2283,7 +2283,7 @@ mod tests { version: transaction::Version::TWO, lock_time: absolute::LockTime::ZERO, input: vec![TxIn::EMPTY_COINBASE, TxIn::EMPTY_COINBASE], - output: vec![TxOut { value: Amount::from_sat(0), script_pubkey: ScriptBuf::new() }], + output: vec![TxOut { value: Amount::ZERO, script_pubkey: ScriptBuf::new() }], }; let mut psbt = Psbt::from_unsigned_tx(unsigned_tx).unwrap();