aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/migrations/_multi-keyring.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-04-28 05:50:19 +0800
committerDan Finlay <dan@danfinlay.com>2017-04-28 05:50:19 +0800
commitd1a10691802fc7eef65f13126c684b6cdf13d461 (patch)
tree9143b42107d8aeb75fa58f8de45c5730bb8621dd /app/scripts/migrations/_multi-keyring.js
parentb0919ba7296553200161913ab413f214aa58e741 (diff)
parenta90b010de891f7936bc17c09c5fd27c61fc0610d (diff)
downloadtangerine-wallet-browser-d1a10691802fc7eef65f13126c684b6cdf13d461.tar
tangerine-wallet-browser-d1a10691802fc7eef65f13126c684b6cdf13d461.tar.gz
tangerine-wallet-browser-d1a10691802fc7eef65f13126c684b6cdf13d461.tar.bz2
tangerine-wallet-browser-d1a10691802fc7eef65f13126c684b6cdf13d461.tar.lz
tangerine-wallet-browser-d1a10691802fc7eef65f13126c684b6cdf13d461.tar.xz
tangerine-wallet-browser-d1a10691802fc7eef65f13126c684b6cdf13d461.tar.zst
tangerine-wallet-browser-d1a10691802fc7eef65f13126c684b6cdf13d461.zip
Merge branch 'master' into rinkeby
Diffstat (limited to 'app/scripts/migrations/_multi-keyring.js')
-rw-r--r--app/scripts/migrations/_multi-keyring.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/app/scripts/migrations/_multi-keyring.js b/app/scripts/migrations/_multi-keyring.js
index 04c966d4d..253aa3d9d 100644
--- a/app/scripts/migrations/_multi-keyring.js
+++ b/app/scripts/migrations/_multi-keyring.js
@@ -15,15 +15,15 @@ const KeyringController = require('../../app/scripts/lib/keyring-controller')
const password = 'obviously not correct'
module.exports = {
- version,
+ version,
migrate: function (versionedData) {
versionedData.meta.version = version
- let store = new ObservableStore(versionedData.data)
- let configManager = new ConfigManager({ store })
- let idStoreMigrator = new IdentityStoreMigrator({ configManager })
- let keyringController = new KeyringController({
+ const store = new ObservableStore(versionedData.data)
+ const configManager = new ConfigManager({ store })
+ const idStoreMigrator = new IdentityStoreMigrator({ configManager })
+ const keyringController = new KeyringController({
configManager: configManager,
})
@@ -46,6 +46,5 @@ module.exports = {
return Promise.resolve(versionedData)
})
})
-
},
}