Skip to content

Commit

Permalink
refactor(mempool): refactor get_nonce method for transaction queue
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadNassar1 committed Jul 10, 2024
1 parent 025f4c3 commit b67d918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/mempool/src/transaction_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ impl TransactionQueue {
self.queue.iter().rev().map(|tx| &tx.0)
}

pub fn _get_nonce(&self, address: &ContractAddress) -> Option<&Nonce> {
self.address_to_tx.get(address).map(|tx| &tx.nonce)
pub fn _get_nonce(&self, address: ContractAddress) -> Option<Nonce> {
self.address_to_tx.get(&address).map(|tx| tx.nonce)
}
}

Expand Down

0 comments on commit b67d918

Please sign in to comment.