Skip to content

Commit

Permalink
Remove unneeded borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharding committed Aug 22, 2024
1 parent af4e091 commit 4d4926c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/bip174.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,8 @@ fn finalize_psbt(mut psbt: Psbt) -> Psbt {
let sigs: Vec<_> = psbt.inputs[1].partial_sigs.values().collect();
let mut script_witness = Witness::new();
script_witness.push([]); // Push 0x00 to the stack.
script_witness.push(&sigs[1].to_vec());
script_witness.push(&sigs[0].to_vec());
script_witness.push(sigs[1].to_vec());
script_witness.push(sigs[0].to_vec());
script_witness.push(psbt.inputs[1].witness_script.clone().unwrap().as_bytes());

script_witness
Expand Down

0 comments on commit 4d4926c

Please sign in to comment.