mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-01-30 23:42:13 +00:00
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:
parent
d5fa83313a
commit
3bc31b9cce
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user