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:
parent
6265799634
commit
5928bc0256
@ -1164,7 +1164,7 @@ export default class MetamaskController extends EventEmitter {
|
|||||||
|
|
||||||
let { transactions } = this.txController.store.getState();
|
let { transactions } = this.txController.store.getState();
|
||||||
// delete tx for other accounts that we're not importing
|
// 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);
|
const checksummedTxFrom = toChecksumAddress(tx.txParams.from);
|
||||||
return accounts.hd.includes(checksummedTxFrom);
|
return accounts.hd.includes(checksummedTxFrom);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user