Skip to content

Commit

Permalink
fix(mempool): fix transaction reference destructuring (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadNassar1 authored Jul 1, 2024
1 parent 0d4ba99 commit d7017e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/mempool/src/transaction_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl AccountTransactionIndex {
}

pub fn remove(&mut self, tx: TransactionReference) -> Option<TransactionReference> {
let ThinTransaction { sender_address, nonce, .. } = tx.0;
let TransactionReference { sender_address, nonce, .. } = tx;
let account_txs = self.0.get_mut(&sender_address)?;

let removed_tx = account_txs.remove(&nonce);
Expand Down

0 comments on commit d7017e8

Please sign in to comment.