aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/metamask-controller.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-02-01 16:31:26 +0800
committerkumavis <aaron@kumavis.me>2017-02-01 16:31:26 +0800
commit1cb730144d6b1c05007323bbc31e4375373628fb (patch)
tree6179fd2b6ea1130561fff4b0ffa4bbd71fa0d854 /app/scripts/metamask-controller.js
parentcd5d95260026333735f25a179c7018077e0da44e (diff)
downloadtangerine-wallet-browser-1cb730144d6b1c05007323bbc31e4375373628fb.tar
tangerine-wallet-browser-1cb730144d6b1c05007323bbc31e4375373628fb.tar.gz
tangerine-wallet-browser-1cb730144d6b1c05007323bbc31e4375373628fb.tar.bz2
tangerine-wallet-browser-1cb730144d6b1c05007323bbc31e4375373628fb.tar.lz
tangerine-wallet-browser-1cb730144d6b1c05007323bbc31e4375373628fb.tar.xz
tangerine-wallet-browser-1cb730144d6b1c05007323bbc31e4375373628fb.tar.zst
tangerine-wallet-browser-1cb730144d6b1c05007323bbc31e4375373628fb.zip
metamask - adopt isInitialized from keyring controller
Diffstat (limited to 'app/scripts/metamask-controller.js')
-rw-r--r--app/scripts/metamask-controller.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 23ced75f1..222a1d618 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -169,14 +169,21 @@ module.exports = class MetamaskController extends EventEmitter {
//
getState () {
+ const wallet = this.configManager.getWallet()
+ const vault = this.keyringController.store.getState().vault
+ const isInitialized = (!!wallet || !!vault)
return extend(
+ {
+ isInitialized,
+ },
this.state,
this.ethStore.getState(),
- this.configManager.getConfig(),
this.txManager.getState(),
this.keyringController.getState(),
this.preferencesController.store.getState(),
this.noticeController.getState(),
+ // config manager
+ this.configManager.getConfig(),
{
shapeShiftTxList: this.configManager.getShapeShiftTxList(),
lostAccounts: this.configManager.getLostAccounts(),