Autodetect tokens on changing chain

This commit is contained in:
Victor Baranov 2018-10-31 14:06:17 +03:00
parent c5cf07d616
commit b6e8453346
1 changed files with 1 additions and 0 deletions

View File

@ -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