diff --git a/zcash_client_backend/src/data_api/wallet.rs b/zcash_client_backend/src/data_api/wallet.rs index a6a34a6d70..31e6215747 100644 --- a/zcash_client_backend/src/data_api/wallet.rs +++ b/zcash_client_backend/src/data_api/wallet.rs @@ -118,6 +118,7 @@ where /// received note must have in the blockchain in order to be considered for being /// spent. A value of 10 confirmations is recommended and 0-conf transactions are /// not supported. +/// * `change_memo`: A memo to be included in the change output /// /// # Examples /// @@ -174,7 +175,8 @@ where /// Amount::from_u64(1).unwrap(), /// None, /// OvkPolicy::Sender, -/// 10 +/// 10, +/// None /// ) /// /// # } diff --git a/zcash_client_backend/src/fees.rs b/zcash_client_backend/src/fees.rs index 1698c30c02..22987c8f12 100644 --- a/zcash_client_backend/src/fees.rs +++ b/zcash_client_backend/src/fees.rs @@ -76,7 +76,7 @@ impl TransactionBalance { }) } - /// The change values proposed by the [`ChangeStrategy`] that computed this balance. + /// The change values proposed by the [`ChangeStrategy`] that computed this balance. pub fn proposed_change(&self) -> &[ChangeValue] { &self.proposed_change } diff --git a/zcash_client_backend/src/fees/fixed.rs b/zcash_client_backend/src/fees/fixed.rs index f4598c8249..1ab4240ff1 100644 --- a/zcash_client_backend/src/fees/fixed.rs +++ b/zcash_client_backend/src/fees/fixed.rs @@ -26,7 +26,8 @@ pub struct SingleOutputChangeStrategy { } impl SingleOutputChangeStrategy { - /// Constructs a new [`SingleOutputChangeStrategy`] with the specified fee rule. + /// Constructs a new [`SingleOutputChangeStrategy`] with the specified fee rule + /// and change memo. pub fn new(fee_rule: FixedFeeRule, change_memo: Option) -> Self { Self { fee_rule, diff --git a/zcash_client_backend/src/fees/zip317.rs b/zcash_client_backend/src/fees/zip317.rs index 4c1f7d6f65..5b95e08450 100644 --- a/zcash_client_backend/src/fees/zip317.rs +++ b/zcash_client_backend/src/fees/zip317.rs @@ -34,7 +34,7 @@ pub struct SingleOutputChangeStrategy { impl SingleOutputChangeStrategy { /// Constructs a new [`SingleOutputChangeStrategy`] with the specified ZIP 317 - /// fee parameters. + /// fee parameters and change memo. pub fn new(fee_rule: Zip317FeeRule, change_memo: Option) -> Self { Self { fee_rule,