Skip to content

Commit

Permalink
Remove needless bound on FeeRule from builder Error type.
Browse files Browse the repository at this point in the history
  • Loading branch information
nuttycom committed Jun 23, 2023
1 parent 1b4017e commit 7fe02f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zcash_primitives/src/transaction/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,12 @@ impl<'a, P: consensus::Parameters, R: RngCore + CryptoRng> Builder<'a, P, R> {
///
/// Returns an error if the given Merkle path does not have the required anchor for
/// the given note.
pub fn add_orchard_spend<FR: FeeRule>(
pub fn add_orchard_spend<FeeError>(
&mut self,
sk: orchard::keys::SpendingKey,
note: orchard::Note,
merkle_path: orchard::tree::MerklePath,
) -> Result<(), Error<FR::Error>> {
) -> Result<(), Error<FeeError>> {
self.orchard_builder
.as_mut()
.ok_or(Error::OrchardAnchorNotAvailable)?
Expand All @@ -296,13 +296,13 @@ impl<'a, P: consensus::Parameters, R: RngCore + CryptoRng> Builder<'a, P, R> {
}

/// Adds an Orchard recipient to the transaction.
pub fn add_orchard_output<FR: FeeRule>(
pub fn add_orchard_output<FeeError>(
&mut self,
ovk: Option<orchard::keys::OutgoingViewingKey>,
recipient: orchard::Address,
value: u64,
memo: MemoBytes,
) -> Result<(), Error<FR::Error>> {
) -> Result<(), Error<FeeError>> {
self.orchard_builder
.as_mut()
.ok_or(Error::OrchardAnchorNotAvailable)?
Expand Down

0 comments on commit 7fe02f0

Please sign in to comment.