psbt: Use Amount::ZERO in unit test

We have a const for this, use it.

Internal change only.
This commit is contained in:
Tobin C. Harding 2025-01-31 09:01:56 +11:00
parent 540038df90
commit 938461cc65
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -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();