We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe923c8 commit 5ccd956Copy full SHA for 5ccd956
src/bitcoin/payment.rs
@@ -87,14 +87,14 @@ pub async fn create_payjoin(
87
info!("Original PSBT successfully signed");
88
89
let additional_fee_index = psbt
90
- .outputs
+ .unsigned_tx
91
+ .output
92
.clone()
93
.into_iter()
94
.enumerate()
- .find(|(_, output)| {
95
+ .find(|(_, txo)| {
96
invoices.iter().all(|invoice| {
- output.redeem_script != Some(invoice.address.script_pubkey())
97
- && output.witness_script != Some(invoice.address.script_pubkey())
+ txo.script_pubkey != invoice.address.script_pubkey()
98
})
99
100
.map(|(i, _)| i);
0 commit comments