Skip to content

Commit

Permalink
fix: move toLowerCase computation out of loop
Browse files Browse the repository at this point in the history
  • Loading branch information
montelaidev committed Jun 3, 2024
1 parent 1f0f698 commit 45a3819
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ export class IncomingTransactionHelper {
return;
}
if (!this.#updateTransactions) {
const address = account.address.toLowerCase();
remoteTransactions = remoteTransactions.filter(
(tx) =>
tx.txParams.to?.toLowerCase() === account.address.toLowerCase(),
(tx) => tx.txParams.to?.toLowerCase() === address,
);
}

Expand Down

0 comments on commit 45a3819

Please sign in to comment.