From 0883d7f3fc26b4f615b049151e43c112c8c7b920 Mon Sep 17 00:00:00 2001 From: Cryptoforge Date: Thu, 30 Jul 2020 21:37:54 -0700 Subject: [PATCH] add set_fee to tx builder --- zcash_primitives/src/transaction/builder.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zcash_primitives/src/transaction/builder.rs b/zcash_primitives/src/transaction/builder.rs index 44318e0..1175c0c 100644 --- a/zcash_primitives/src/transaction/builder.rs +++ b/zcash_primitives/src/transaction/builder.rs @@ -332,6 +332,10 @@ impl Builder { } } + pub fn set_fee(&mut self, fee: Amount) { + self.fee = fee; + } + /// Adds a Sapling note to be spent in this transaction. /// /// Returns an error if the given Merkle path does not have the same anchor as the