From 368b59f9376d99f9368af8bca5438a45292f62c1 Mon Sep 17 00:00:00 2001 From: lucretius Date: Mon, 22 Jan 2024 17:14:06 +0100 Subject: [PATCH] add fee to 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 c19cab5..ec7eacf 100644 --- a/zcash_primitives/src/transaction/builder.rs +++ b/zcash_primitives/src/transaction/builder.rs @@ -294,6 +294,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 witness does not have the same anchor as previous