aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/keyring-controller.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-30 16:32:04 +0800
committerkumavis <aaron@kumavis.me>2017-01-30 16:32:04 +0800
commitdd528d886f1d2e017cd55ba7e003493f0bc4579c (patch)
treee701cb7d85f2feddb20e3293c5461a65b09778d3 /app/scripts/keyring-controller.js
parent6480c2d8a612a966091aa69c8af5462274e8d04c (diff)
downloadtangerine-wallet-browser-dd528d886f1d2e017cd55ba7e003493f0bc4579c.tar
tangerine-wallet-browser-dd528d886f1d2e017cd55ba7e003493f0bc4579c.tar.gz
tangerine-wallet-browser-dd528d886f1d2e017cd55ba7e003493f0bc4579c.tar.bz2
tangerine-wallet-browser-dd528d886f1d2e017cd55ba7e003493f0bc4579c.tar.lz
tangerine-wallet-browser-dd528d886f1d2e017cd55ba7e003493f0bc4579c.tar.xz
tangerine-wallet-browser-dd528d886f1d2e017cd55ba7e003493f0bc4579c.tar.zst
tangerine-wallet-browser-dd528d886f1d2e017cd55ba7e003493f0bc4579c.zip
metamask - lookup selectedAccount via keyringController
Diffstat (limited to 'app/scripts/keyring-controller.js')
-rw-r--r--app/scripts/keyring-controller.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js
index 68fc6e882..40cc975f9 100644
--- a/app/scripts/keyring-controller.js
+++ b/app/scripts/keyring-controller.js
@@ -244,6 +244,15 @@ class KeyringController extends EventEmitter {
return this.fullUpdate()
}
+ // Get Selected Account
+ //
+ // returns String
+ //
+ // Gets the state's `selectedAccount` value
+ getSelectedAccount () {
+ return this.store.getState().selectedAccount
+ }
+
// Save Account Label
// @string account
// @string label