Removed unnecessary 'to' parameter in add_transparent_output_with_script_pubkey(), and swapped the order of 'value' and 'script_pubkey'.

This commit is contained in:
CalDescent 2022-05-15 11:17:06 +01:00
parent d5fa83313a
commit 3bc31b9cce

View File

@ -422,9 +422,8 @@ impl<R: RngCore + CryptoRng> Builder<R> {
/// Adds a transparent address to send funds to, using supplied script pubkey
pub fn add_transparent_output_with_script_pubkey(
&mut self,
to: &TransparentAddress,
value: Amount,
script_pubkey: Script,
value: Amount,
) -> Result<(), Error> {
if value.is_negative() {
return Err(Error::InvalidAmount);