Autodetect tokens on changing chain
This commit is contained in:
parent
c5cf07d616
commit
b6e8453346
|
@ -142,6 +142,7 @@ module.exports = class MetamaskController extends EventEmitter {
|
|||
// ensure accountTracker updates balances after network change
|
||||
this.networkController.on('networkDidChange', () => {
|
||||
this.accountTracker._updateAccounts()
|
||||
this.detectTokensController.restartTokenDetection()
|
||||
})
|
||||
|
||||
// key mgmt
|
||||
|
|
Loading…
Reference in New Issue