1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

fix transaction sync logic (#10954)

This commit is contained in:
Brad Decker 2021-04-29 12:51:39 -05:00 committed by GitHub
parent 6265799634
commit 5928bc0256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1164,7 +1164,7 @@ export default class MetamaskController extends EventEmitter {
let { transactions } = this.txController.store.getState();
// delete tx for other accounts that we're not importing
transactions = transactions.filter((tx) => {
transactions = Object.values(transactions).filter((tx) => {
const checksummedTxFrom = toChecksumAddress(tx.txParams.from);
return accounts.hd.includes(checksummedTxFrom);
});