migration #6 - fix selectedAddress data source

feature/default_network_editable
kumavis 8 years ago
parent 7ccaa263d2
commit 0b9d37c6c8
  1. 4
      app/scripts/migrations/006.js

@ -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…
Cancel
Save