Skip to content

Commit

Permalink
fix nit
Browse files Browse the repository at this point in the history
  • Loading branch information
borngraced committed Dec 6, 2024
1 parent ced9107 commit c910d19
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions zcash_extras/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use std::fmt::{Debug, Display};

use zcash_primitives::{
consensus::{self, BranchId, NetworkUpgrade},
consensus::{self, BranchId},
memo::MemoBytes,
sapling::prover::TxProver,
transaction::{
Expand Down Expand Up @@ -41,10 +41,7 @@ where
.await?
.map(|(_, max)| max + 1)
.ok_or(Error::ScanRequired)?;
let height = data
.get_tx_height(tx.txid())
.await?
.unwrap_or_else(|| max_height);
let height = data.get_tx_height(tx.txid()).await?.unwrap_or(max_height);

let outputs = decrypt_transaction(params, height, tx, &extfvks);
if outputs.is_empty() {
Expand Down

0 comments on commit c910d19

Please sign in to comment.