metamask - subscribe metamask store to keyringController substate

feature/default_network_editable
kumavis 8 years ago
parent 4dd6ba9c1b
commit 13e2003469
  1. 3
      app/scripts/metamask-controller.js

@ -98,6 +98,9 @@ module.exports = class MetamaskController extends EventEmitter {
this.ethStore.on('update', this.sendUpdate.bind(this)) this.ethStore.on('update', this.sendUpdate.bind(this))
this.keyringController.on('update', this.sendUpdate.bind(this)) this.keyringController.on('update', this.sendUpdate.bind(this))
this.txManager.on('update', this.sendUpdate.bind(this)) this.txManager.on('update', this.sendUpdate.bind(this))
this.keyringController.store.subscribe((state) => {
this.store.updateState({ KeyringController: state })
})
} }
// //

Loading…
Cancel
Save