mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
metamask controller - force account tracker to update balances on network change
This commit is contained in:
parent
babd59a2dc
commit
cb0af67f74
@ -127,6 +127,10 @@ module.exports = class MetamaskController extends EventEmitter {
|
|||||||
provider: this.provider,
|
provider: this.provider,
|
||||||
blockTracker: this.blockTracker,
|
blockTracker: this.blockTracker,
|
||||||
})
|
})
|
||||||
|
// ensure accountTracker updates balances after network change
|
||||||
|
this.networkController.on('networkDidChange', () => {
|
||||||
|
this.accountTracker._updateAccounts()
|
||||||
|
})
|
||||||
|
|
||||||
// key mgmt
|
// key mgmt
|
||||||
const additionalKeyrings = [TrezorKeyring, LedgerBridgeKeyring]
|
const additionalKeyrings = [TrezorKeyring, LedgerBridgeKeyring]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user