mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
migration #6 - fix selectedAddress data source
This commit is contained in:
parent
7ccaa263d2
commit
0b9d37c6c8
@ -25,12 +25,12 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function migrateState (state) {
|
function migrateState (state) {
|
||||||
const config = state.config
|
const keyringSubstate = state.KeyringController
|
||||||
|
|
||||||
// add new state
|
// add new state
|
||||||
const newState = extend(state, {
|
const newState = extend(state, {
|
||||||
PreferencesController: {
|
PreferencesController: {
|
||||||
selectedAddress: config.selectedAccount,
|
selectedAddress: keyringSubstate.selectedAccount,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user