public config - get selectedAccount from keyring controller substate

feature/default_network_editable
kumavis 8 years ago
parent 13e2003469
commit 6480c2d8a6
  1. 2
      app/scripts/metamask-controller.js

@ -146,7 +146,7 @@ module.exports = class MetamaskController extends EventEmitter {
function selectPublicState(state) {
const result = { selectedAccount: undefined }
try {
result.selectedAccount = state.config.selectedAccount
result.selectedAccount = state.KeyringController.selectedAccount
} catch (_) {}
return result
}

Loading…
Cancel
Save