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