aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/migrations/006.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/migrations/006.js')
-rw-r--r--app/scripts/migrations/006.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/scripts/migrations/006.js b/app/scripts/migrations/006.js
index 950c4deb8..94d1b6ecd 100644
--- a/app/scripts/migrations/006.js
+++ b/app/scripts/migrations/006.js
@@ -7,11 +7,13 @@ This migration moves KeyringController.selectedAddress to PreferencesController.
*/
const extend = require('xtend')
+const clone = require('clone')
module.exports = {
- version,
+ version,
- migrate: function (versionedData) {
+ migrate: function (originalVersionedData) {
+ let versionedData = clone(originalVersionedData)
versionedData.meta.version = version
try {
const state = versionedData.data