Skip to content

Commit

Permalink
Simplify input_pairs signature
Browse files Browse the repository at this point in the history
  • Loading branch information
DanGould committed Feb 4, 2024
1 parent df91500 commit 4f95eff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mutiny-core/src/onchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,8 @@ impl<S: MutinyStorage> OnChainWallet<S> {
// does not look up
fn input_pairs(
psbt: &mut PartiallySignedTransaction,
) -> Box<dyn Iterator<Item = (&bitcoin::TxIn, &mut Input)> + '_> {
Box::new(psbt.unsigned_tx.input.iter().zip(&mut psbt.inputs))
) -> impl Iterator<Item = (&bitcoin::TxIn, &mut Input)> {
psbt.iter_funding_utxo().zip(&mut psbt.inputs)
}

let mut original_inputs = input_pairs(&mut original_psbt).peekable();
Expand Down

0 comments on commit 4f95eff

Please sign in to comment.