aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/keyring-controller.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-01-27 08:14:52 +0800
committerGitHub <noreply@github.com>2017-01-27 08:14:52 +0800
commit2b34cb4564f7987e49a21d807df93223f2b16a23 (patch)
tree2586faa712be1ef98b0d45d8edeed978d99ac4e0 /app/scripts/keyring-controller.js
parentd30612a2168b02c39a3eaa86f29e47d9edda07d8 (diff)
parentdc86ddebb77fed06a2857ef7a6031a45724740a9 (diff)
downloadtangerine-wallet-browser-2b34cb4564f7987e49a21d807df93223f2b16a23.tar
tangerine-wallet-browser-2b34cb4564f7987e49a21d807df93223f2b16a23.tar.gz
tangerine-wallet-browser-2b34cb4564f7987e49a21d807df93223f2b16a23.tar.bz2
tangerine-wallet-browser-2b34cb4564f7987e49a21d807df93223f2b16a23.tar.lz
tangerine-wallet-browser-2b34cb4564f7987e49a21d807df93223f2b16a23.tar.xz
tangerine-wallet-browser-2b34cb4564f7987e49a21d807df93223f2b16a23.tar.zst
tangerine-wallet-browser-2b34cb4564f7987e49a21d807df93223f2b16a23.zip
Merge pull request #1057 from MetaMask/kumavis-refactor1
background - various refactor, cleanups, and fixes
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 = []
}