From 9091318ab1f543b027b4d3ccf23795daaa2e8646 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sat, 15 Apr 2023 12:56:51 +0200 Subject: [PATCH] fix(rpc): flip is empty check (#2269) --- crates/rpc/rpc/src/eth/api/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rpc/rpc/src/eth/api/state.rs b/crates/rpc/rpc/src/eth/api/state.rs index a06b700004..f8462de4af 100644 --- a/crates/rpc/rpc/src/eth/api/state.rs +++ b/crates/rpc/rpc/src/eth/api/state.rs @@ -44,7 +44,7 @@ where // lookup transactions in pool let address_txs = self.pool().get_transactions_by_sender(address); - if address_txs.is_empty() { + if !address_txs.is_empty() { // get max transaction with the highest nonce let highest_nonce_tx = address_txs .into_iter()