Get popup appearing when suggesting new token

feature/default_network_editable
Dan Finlay 7 years ago
parent f14ed32980
commit 5e4f3e430a
  1. 4
      app/scripts/controllers/preferences.js
  2. 1
      app/scripts/metamask-controller.js

@ -36,6 +36,7 @@ class PreferencesController {
this.diagnostics = opts.diagnostics
this.store = new ObservableStore(initState)
this.showAddTokenUi = opts.showAddTokenUi
}
// PUBLIC METHODS
@ -79,7 +80,8 @@ class PreferencesController {
symbol,
}
this.suggestWatchToken()
this.addSuggestedToken(tokenOpts)
this.showAddTokenUi()
return end(null, {
result: rawAddress,

@ -85,6 +85,7 @@ module.exports = class MetamaskController extends EventEmitter {
this.preferencesController = new PreferencesController({
initState: initState.PreferencesController,
initLangCode: opts.initLangCode,
showAddTokenUi: opts.showAddTokenUi,
})
// currency controller

Loading…
Cancel
Save