diff --git a/crates/mempool/src/transaction_queue.rs b/crates/mempool/src/transaction_queue.rs index f4a2b2bc..2a9b1904 100644 --- a/crates/mempool/src/transaction_queue.rs +++ b/crates/mempool/src/transaction_queue.rs @@ -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 { + self.address_to_tx.get(&address).map(|tx| tx.nonce) } }