aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/keyring-controller.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-27 07:09:31 +0800
committerkumavis <aaron@kumavis.me>2017-01-27 07:09:31 +0800
commitaf115aa4c12849b147224cd0d167f5a57565ed6d (patch)
tree52d2ae958fd387f7e567f6ba66f0601c368dc184 /app/scripts/keyring-controller.js
parentd30612a2168b02c39a3eaa86f29e47d9edda07d8 (diff)
downloadtangerine-wallet-browser-af115aa4c12849b147224cd0d167f5a57565ed6d.tar
tangerine-wallet-browser-af115aa4c12849b147224cd0d167f5a57565ed6d.tar.gz
tangerine-wallet-browser-af115aa4c12849b147224cd0d167f5a57565ed6d.tar.bz2
tangerine-wallet-browser-af115aa4c12849b147224cd0d167f5a57565ed6d.tar.lz
tangerine-wallet-browser-af115aa4c12849b147224cd0d167f5a57565ed6d.tar.xz
tangerine-wallet-browser-af115aa4c12849b147224cd0d167f5a57565ed6d.tar.zst
tangerine-wallet-browser-af115aa4c12849b147224cd0d167f5a57565ed6d.zip
background - organize metamask instantiation
Diffstat (limited to 'app/scripts/keyring-controller.js')
-rw-r--r--app/scripts/keyring-controller.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js
index 741757c5a..0a1965782 100644
--- a/app/scripts/keyring-controller.js
+++ b/app/scripts/keyring-controller.js
@@ -41,17 +41,6 @@ module.exports = class KeyringController extends EventEmitter {
this.getNetwork = opts.getNetwork
}
- // Set Store
- //
- // Allows setting the ethStore after the constructor.
- // This is currently required because of the initialization order
- // of the ethStore and this class.
- //
- // Eventually would be nice to be able to add this in the constructor.
- setStore (ethStore) {
- this.ethStore = ethStore
- }
-
// Full Update
// returns Promise( @object state )
//
@@ -651,7 +640,7 @@ module.exports = class KeyringController extends EventEmitter {
clearKeyrings () {
let accounts
try {
- accounts = Object.keys(this.ethStore._currentState.accounts)
+ accounts = Object.keys(this.ethStore.getState())
} catch (e) {
accounts = []
}