@ -52,7 +52,7 @@ reloadStream.once('data', triggerReload)
// set web3 defaultAccount
inpageProvider.publicConfigStore.subscribe(function (state) {
web3.eth.defaultAccount = state.PreferencesController.selectedAddress
web3.eth.defaultAccount = state.selectedAddress
})
//
@ -156,7 +156,7 @@ module.exports = class MetamaskController extends EventEmitter {
function selectPublicState(state) {
const result = { selectedAddress: undefined }
try {
result.selectedAddress = state.KeyringController.selectedAddress
result.selectedAddress = state.PreferencesController.selectedAddress
} catch (_) {}
return result
}