From b6e84533465a645f4d31be5eaa1b929acab36006 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Wed, 31 Oct 2018 14:06:17 +0300 Subject: [PATCH] Autodetect tokens on changing chain --- app/scripts/metamask-controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index c641c62e05f2..af21ee2f2e03 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -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