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:
parent
13e2003469
commit
6480c2d8a6
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user