Skip to content

Commit

Permalink
Merge pull request #112 from nicbus/opret_support
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky authored Jan 26, 2024
2 parents dde9173 + d69addc commit 078bc09
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,10 @@ impl Runtime {
} else {
None
};
let output = psbt
.outputs_mut()
psbt.outputs_mut()
.find(|o| o.script.is_p2tr() && Some(&o.script) != beneficiary_script.as_ref())
.ok_or(CompositionError::TapretRequired)?;
.map(|o| o.set_tapret_host().expect("just created"));
// TODO: Add descriptor id to the tapret host data
output.set_tapret_host().expect("just created");

let change_script = meta
.change_vout
Expand Down

0 comments on commit 078bc09

Please sign in to comment.