fix(rpc): flip is empty check (#2269)

This commit is contained in:
Matthias Seitz
2023-04-15 12:56:51 +02:00
committed by GitHub
parent b45182ae2c
commit 9091318ab1

View File

@@ -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()