Skip to content

Commit

Permalink
Simplify payout_scripts iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
DanGould committed Oct 19, 2023
1 parent 5a50655 commit 6a65d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mutiny-core/src/nodemanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ impl<S: MutinyStorage> NodeManager<S> {
.map_err(|_| MutinyError::PayjoinConfigError)?;
let original_psbt = self.wallet.create_signed_psbt(address, amount, fee_rate)?;

let payout_scripts = std::iter::once(uri.address.script_pubkey()).collect::<Vec<_>>();
let payout_scripts = std::iter::once(uri.address.script_pubkey());
let fee_rate = if let Some(rate) = fee_rate {
FeeRate::from_sat_per_vb(rate)
} else {
Expand Down

0 comments on commit 6a65d66

Please sign in to comment.