diff --git a/crates/transaction-pool/src/lib.rs b/crates/transaction-pool/src/lib.rs index 6b9d6bb81636..abaaab427ae9 100644 --- a/crates/transaction-pool/src/lib.rs +++ b/crates/transaction-pool/src/lib.rs @@ -485,7 +485,7 @@ where self.pool.get_transactions_by_sender(sender) } - fn get_transactions_by_sender_and_nonce( + fn get_transaction_by_sender_and_nonce( &self, sender: Address, nonce: u64, diff --git a/crates/transaction-pool/src/noop.rs b/crates/transaction-pool/src/noop.rs index 541e25aa28a0..4b6654269475 100644 --- a/crates/transaction-pool/src/noop.rs +++ b/crates/transaction-pool/src/noop.rs @@ -203,7 +203,7 @@ impl TransactionPool for NoopTransactionPool { vec![] } - fn get_transactions_by_sender_and_nonce( + fn get_transaction_by_sender_and_nonce( &self, _sender: Address, _nonce: u64, diff --git a/crates/transaction-pool/src/traits.rs b/crates/transaction-pool/src/traits.rs index 588722e7f070..d90d82a75396 100644 --- a/crates/transaction-pool/src/traits.rs +++ b/crates/transaction-pool/src/traits.rs @@ -331,8 +331,8 @@ pub trait TransactionPool: Send + Sync + Clone { sender: Address, ) -> Vec>>; - /// Returns a transaction sent by a given user with a given nonce - fn get_transactions_by_sender_and_nonce( + /// Returns a transaction sent by a given user and a nonce + fn get_transaction_by_sender_and_nonce( &self, sender: Address, nonce: u64,