diff options
author | Esteban MIno <efmino@uc.cl> | 2018-08-04 07:24:12 +0800 |
---|---|---|
committer | Esteban MIno <efmino@uc.cl> | 2018-08-04 07:24:12 +0800 |
commit | 9ac9f53a73357238ed2ee0ce57c65de592cfd968 (patch) | |
tree | 3ae3540c33a84dc5fc744aaee15fde6f76f2f6c6 /app/scripts | |
parent | 12dd7a72323bf82d60e99502104e375864c0fbab (diff) | |
download | tangerine-wallet-browser-9ac9f53a73357238ed2ee0ce57c65de592cfd968.tar.gz tangerine-wallet-browser-9ac9f53a73357238ed2ee0ce57c65de592cfd968.tar.zst tangerine-wallet-browser-9ac9f53a73357238ed2ee0ce57c65de592cfd968.zip |
eth_watchToken working
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/controllers/preferences.js | 7 | ||||
-rw-r--r-- | app/scripts/metamask-controller.js | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/app/scripts/controllers/preferences.js b/app/scripts/controllers/preferences.js index 50f716852..521a68a66 100644 --- a/app/scripts/controllers/preferences.js +++ b/app/scripts/controllers/preferences.js @@ -211,6 +211,13 @@ class PreferencesController { return selected } + removeSuggestedTokens () { + return new Promise((resolve, reject) => { + this.store.updateState({ suggestedTokens: {} }) + resolve() + }) + } + /** * Setter for the `selectedAddress` property * diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index e843ec660..801363cb0 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -392,6 +392,7 @@ module.exports = class MetamaskController extends EventEmitter { setSelectedAddress: nodeify(preferencesController.setSelectedAddress, preferencesController), addToken: nodeify(preferencesController.addToken, preferencesController), removeToken: nodeify(preferencesController.removeToken, preferencesController), + removeSuggestedTokens: nodeify(preferencesController.removeSuggestedTokens, preferencesController), setCurrentAccountTab: nodeify(preferencesController.setCurrentAccountTab, preferencesController), setAccountLabel: nodeify(preferencesController.setAccountLabel, preferencesController), setFeatureFlag: nodeify(preferencesController.setFeatureFlag, preferencesController), |