fix migration for preferences controller tokens

feature/default_network_editable
Esteban MIno 6 years ago
parent 228f48c6e5
commit e687bc5a47
  1. 2
      app/scripts/migrations/028.js

@ -29,7 +29,7 @@ function transformState (state) {
const tokens = newState.TransactionController.tokens
const selectedAddress = newState.PreferencesController.selectedAddress
newState.PreferencesController.tokens = []
newState.PreferencesController.accountTokens = {selectedAddress: {'mainnet': tokens}}
newState.PreferencesController.accountTokens = {[selectedAddress]: {'mainnet': tokens}}
}
}

Loading…
Cancel
Save