From 13e20034698ae0477240e88eab9a3483e5daccd6 Mon Sep 17 00:00:00 2001 From: kumavis Date: Sat, 28 Jan 2017 22:12:15 -0800 Subject: [PATCH] metamask - subscribe metamask store to keyringController substate --- app/scripts/metamask-controller.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index f3da6f53e..cf58d2477 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -98,6 +98,9 @@ module.exports = class MetamaskController extends EventEmitter { this.ethStore.on('update', this.sendUpdate.bind(this)) this.keyringController.on('update', this.sendUpdate.bind(this)) this.txManager.on('update', this.sendUpdate.bind(this)) + this.keyringController.store.subscribe((state) => { + this.store.updateState({ KeyringController: state }) + }) } //