From d7017e8da7be4c174386b0b0133c682af304069e Mon Sep 17 00:00:00 2001 From: mohammad-starkware <130282237+MohammadNassar1@users.noreply.github.com> Date: Mon, 1 Jul 2024 09:11:40 +0300 Subject: [PATCH] fix(mempool): fix transaction reference destructuring (#328) --- crates/mempool/src/transaction_pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/mempool/src/transaction_pool.rs b/crates/mempool/src/transaction_pool.rs index f242f1dc..ef161853 100644 --- a/crates/mempool/src/transaction_pool.rs +++ b/crates/mempool/src/transaction_pool.rs @@ -90,7 +90,7 @@ impl AccountTransactionIndex { } pub fn remove(&mut self, tx: TransactionReference) -> Option { - let ThinTransaction { sender_address, nonce, .. } = tx.0; + let TransactionReference { sender_address, nonce, .. } = tx; let account_txs = self.0.get_mut(&sender_address)?; let removed_tx = account_txs.remove(&nonce);