mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Get popup appearing when suggesting new token
This commit is contained in:
parent
f14ed32980
commit
5e4f3e430a
@ -36,6 +36,7 @@ class PreferencesController {
|
|||||||
this.diagnostics = opts.diagnostics
|
this.diagnostics = opts.diagnostics
|
||||||
|
|
||||||
this.store = new ObservableStore(initState)
|
this.store = new ObservableStore(initState)
|
||||||
|
this.showAddTokenUi = opts.showAddTokenUi
|
||||||
}
|
}
|
||||||
// PUBLIC METHODS
|
// PUBLIC METHODS
|
||||||
|
|
||||||
@ -79,7 +80,8 @@ class PreferencesController {
|
|||||||
symbol,
|
symbol,
|
||||||
}
|
}
|
||||||
|
|
||||||
this.suggestWatchToken()
|
this.addSuggestedToken(tokenOpts)
|
||||||
|
this.showAddTokenUi()
|
||||||
|
|
||||||
return end(null, {
|
return end(null, {
|
||||||
result: rawAddress,
|
result: rawAddress,
|
||||||
|
@ -85,6 +85,7 @@ module.exports = class MetamaskController extends EventEmitter {
|
|||||||
this.preferencesController = new PreferencesController({
|
this.preferencesController = new PreferencesController({
|
||||||
initState: initState.PreferencesController,
|
initState: initState.PreferencesController,
|
||||||
initLangCode: opts.initLangCode,
|
initLangCode: opts.initLangCode,
|
||||||
|
showAddTokenUi: opts.showAddTokenUi,
|
||||||
})
|
})
|
||||||
|
|
||||||
// currency controller
|
// currency controller
|
||||||
|
Loading…
Reference in New Issue
Block a user