mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-01-31 07:42:15 +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
|
/// Adds a transparent address to send funds to, using supplied script pubkey
|
||||||
pub fn add_transparent_output_with_script_pubkey(
|
pub fn add_transparent_output_with_script_pubkey(
|
||||||
&mut self,
|
&mut self,
|
||||||
to: &TransparentAddress,
|
|
||||||
value: Amount,
|
|
||||||
script_pubkey: Script,
|
script_pubkey: Script,
|
||||||
|
value: Amount,
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
if value.is_negative() {
|
if value.is_negative() {
|
||||||
return Err(Error::InvalidAmount);
|
return Err(Error::InvalidAmount);
|
||||||
|
Loading…
Reference in New Issue
Block a user