mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-10-22 15:22:41 +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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user