1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

public config - get selectedAccount from keyring controller substate

This commit is contained in:
kumavis 2017-01-29 23:59:17 -08:00
parent 13e2003469
commit 6480c2d8a6

View File

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