Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions crates/wallet/src/wallet/tx_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,12 @@ impl<'a, Cs> TxBuilder<'a, Cs> {
}

/// Add a recipient to the internal list
pub fn add_recipient(&mut self, script_pubkey: ScriptBuf, amount: Amount) -> &mut Self {
self.params.recipients.push((script_pubkey, amount));
pub fn add_recipient(
&mut self,
script_pubkey: impl Into<ScriptBuf>,
amount: Amount,
) -> &mut Self {
self.params.recipients.push((script_pubkey.into(), amount));
self
}

Expand Down
Loading