Deleting transactions from currentNetworkTxnList based on unique address along with nonce and chainId (#13669)

feature/default_network_editable
Niranjana Binoy 3 years ago committed by GitHub
parent 30b2afe7bc
commit 2bab7ada8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/scripts/controllers/transactions/tx-state-manager.js

@ -249,9 +249,9 @@ export default class TransactionStateManager extends EventEmitter {
const txsToDelete = transactions
.reverse()
.filter((tx) => {
const { nonce } = tx.txParams;
const { nonce, from } = tx.txParams;
const { chainId, metamaskNetworkId, status } = tx;
const key = `${nonce}-${chainId ?? metamaskNetworkId}`;
const key = `${nonce}-${chainId ?? metamaskNetworkId}-${from}`;
if (nonceNetworkSet.has(key)) {
return false;
} else if (

Loading…
Cancel
Save