diff --git a/crates/wallet/src/wallet/tx_builder.rs b/crates/wallet/src/wallet/tx_builder.rs index 235987fc0..7d6937619 100644 --- a/crates/wallet/src/wallet/tx_builder.rs +++ b/crates/wallet/src/wallet/tx_builder.rs @@ -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, + amount: Amount, + ) -> &mut Self { + self.params.recipients.push((script_pubkey.into(), amount)); self }