1
0
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:
kumavis 2017-01-30 15:53:21 -08:00
parent 7ccaa263d2
commit 0b9d37c6c8

View File

@ -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,
}, },
}) })