aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/metamask-controller.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-02-22 06:41:55 +0800
committerDan Finlay <dan@danfinlay.com>2017-02-22 06:41:55 +0800
commit8684fc40c78cb5293d85f751cf3927c14067d343 (patch)
tree757a9ceac9e957b6e29fe5d960ad1edaf5bedbc6 /app/scripts/metamask-controller.js
parent6c0916c28dc3d4f8eb449f92393a70545481ce30 (diff)
downloadtangerine-wallet-browser-8684fc40c78cb5293d85f751cf3927c14067d343.tar
tangerine-wallet-browser-8684fc40c78cb5293d85f751cf3927c14067d343.tar.gz
tangerine-wallet-browser-8684fc40c78cb5293d85f751cf3927c14067d343.tar.bz2
tangerine-wallet-browser-8684fc40c78cb5293d85f751cf3927c14067d343.tar.lz
tangerine-wallet-browser-8684fc40c78cb5293d85f751cf3927c14067d343.tar.xz
tangerine-wallet-browser-8684fc40c78cb5293d85f751cf3927c14067d343.tar.zst
tangerine-wallet-browser-8684fc40c78cb5293d85f751cf3927c14067d343.zip
Allow provider to init before keyringController
Diffstat (limited to 'app/scripts/metamask-controller.js')
-rw-r--r--app/scripts/metamask-controller.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 06c133bb2..d58d1c22d 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -151,7 +151,6 @@ module.exports = class MetamaskController extends EventEmitter {
//
initializeProvider () {
- const keyringController = this.keyringController
let provider = MetaMaskProvider({
static: {
@@ -173,7 +172,7 @@ module.exports = class MetamaskController extends EventEmitter {
// new style msg signing
approvePersonalMessage: this.approvePersonalMessage.bind(this),
signPersonalMessage: nodeify(this.signPersonalMessage).bind(this),
- personalRecoverSigner: nodeify(keyringController.recoverPersonalMessage).bind(keyringController),
+ personalRecoverSigner: nodeify(this.recoverPersonalMessage).bind(this),
})
return provider
}
@@ -493,6 +492,11 @@ module.exports = class MetamaskController extends EventEmitter {
})
}
+ recoverPersonalMessage (msgParams) {
+ const keyringController = this.keyringController
+ return keyringController.recoverPersonalMessage(msgParams)
+ }
+
markAccountsFound (cb) {
this.configManager.setLostAccounts([])
this.sendUpdate()