Skip to content

Commit

Permalink
Fix: transaction history for arb/base/op tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgustavo committed Jun 17, 2024
1 parent abe779e commit af61c74
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/store/wallet/effects/transactions/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ export const ProcessPendingTxps =
const {currencyAbbreviation, chain, tokenAddress} = wallet;

txps.forEach((tx: TransactionProposal) => {
// Filter received txs with no effects for ERC20 tokens only
if (
IsERCToken(currencyAbbreviation, chain) &&
tx.effects &&
!tx.effects[0]
) {
return;
}
tx = dispatch(ProcessTx(tx, wallet));

// no future transactions...
Expand Down Expand Up @@ -266,6 +274,11 @@ const ProcessNewTxs =
tx.coin = wallet.currencyAbbreviation;
tx.chain = wallet.chain;

// Filter received txs with no effects for ERC20 tokens only
if (IsERCToken(tx.coin, tx.chain) && tx.effects && !tx.effects[0]) {
continue;
}

tx = dispatch(ProcessTx(tx, wallet));

// no future transactions...
Expand Down

0 comments on commit af61c74

Please sign in to comment.