Skip to content

Commit

Permalink
Autodetect tokens on changing chain
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov committed Oct 31, 2018
1 parent c5cf07d commit b6e8453
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b6e8453

Please sign in to comment.