aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-05-25 04:44:33 +0800
committerkumavis <aaron@kumavis.me>2018-05-25 04:44:33 +0800
commit66a62dfd0c2efbb9596bdc4b4befe03b25fbd7e9 (patch)
tree0e3b5343b04879cae59caf74621ba1614c393340 /app
parent91accee2c65e2b9c9e278451f1d6794f74b27c24 (diff)
downloadtangerine-wallet-browser-66a62dfd0c2efbb9596bdc4b4befe03b25fbd7e9.tar
tangerine-wallet-browser-66a62dfd0c2efbb9596bdc4b4befe03b25fbd7e9.tar.gz
tangerine-wallet-browser-66a62dfd0c2efbb9596bdc4b4befe03b25fbd7e9.tar.bz2
tangerine-wallet-browser-66a62dfd0c2efbb9596bdc4b4befe03b25fbd7e9.tar.lz
tangerine-wallet-browser-66a62dfd0c2efbb9596bdc4b4befe03b25fbd7e9.tar.xz
tangerine-wallet-browser-66a62dfd0c2efbb9596bdc4b4befe03b25fbd7e9.tar.zst
tangerine-wallet-browser-66a62dfd0c2efbb9596bdc4b4befe03b25fbd7e9.zip
metamask-controller - fix account lookup hook
Diffstat (limited to 'app')
-rw-r--r--app/scripts/metamask-controller.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 14eb749e7..152ad13a0 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -241,7 +241,7 @@ module.exports = class MetamaskController extends EventEmitter {
},
},
// account mgmt
- getAccounts: (cb) => {
+ getAccounts: async () => {
const isUnlocked = this.keyringController.memStore.getState().isUnlocked
const result = []
const selectedAddress = this.preferencesController.getSelectedAddress()
@@ -250,7 +250,7 @@ module.exports = class MetamaskController extends EventEmitter {
if (isUnlocked && selectedAddress) {
result.push(selectedAddress)
}
- cb(null, result)
+ return result
},
// tx signing
// old style msg signing