From 3bc31b9cceaef79865f3a4c85e31f76b9755e15c Mon Sep 17 00:00:00 2001 From: CalDescent <> Date: Sun, 15 May 2022 11:17:06 +0100 Subject: [PATCH] Removed unnecessary 'to' parameter in add_transparent_output_with_script_pubkey(), and swapped the order of 'value' and 'script_pubkey'. --- zcash_primitives/src/transaction/builder.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zcash_primitives/src/transaction/builder.rs b/zcash_primitives/src/transaction/builder.rs index 8a3aa41..e30d88f 100644 --- a/zcash_primitives/src/transaction/builder.rs +++ b/zcash_primitives/src/transaction/builder.rs @@ -422,9 +422,8 @@ impl Builder { /// 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);