Skip to content

Commit

Permalink
pay: fix saving information about tapret tweaks
Browse files Browse the repository at this point in the history
Closes #158
  • Loading branch information
dr-orlovsky committed Apr 19, 2024
1 parent f9813b7 commit ce07eb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/pay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ impl Runtime {
let contract_id = invoice.contract.ok_or(CompletionError::NoContract)?;

let fascia = psbt.rgb_commit()?;
if let Some(output) = psbt.dbc_output::<TapretProof>() {
if fascia.anchor.has_tapret() {
let output = psbt
.dbc_output::<TapretProof>()
.ok_or(TapretKeyError::NotTaprootOutput)?;
let terminal = output
.terminal_derivation()
.ok_or(CompletionError::InconclusiveDerivation)?;
Expand Down

0 comments on commit ce07eb7

Please sign in to comment.