aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/migrations/003.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-12 18:24:33 +0800
committerkumavis <aaron@kumavis.me>2017-01-12 18:24:33 +0800
commit80514d73b5bc6887cea877194091c941cfb9a8e6 (patch)
tree24e051368ffe23fdc126ae30407f79febb4a7760 /app/scripts/migrations/003.js
parentb33c51c0a6c7c8a7b0c0a9a6ca101f874f2db3d1 (diff)
downloadtangerine-wallet-browser-80514d73b5bc6887cea877194091c941cfb9a8e6.tar
tangerine-wallet-browser-80514d73b5bc6887cea877194091c941cfb9a8e6.tar.gz
tangerine-wallet-browser-80514d73b5bc6887cea877194091c941cfb9a8e6.tar.bz2
tangerine-wallet-browser-80514d73b5bc6887cea877194091c941cfb9a8e6.tar.lz
tangerine-wallet-browser-80514d73b5bc6887cea877194091c941cfb9a8e6.tar.xz
tangerine-wallet-browser-80514d73b5bc6887cea877194091c941cfb9a8e6.tar.zst
tangerine-wallet-browser-80514d73b5bc6887cea877194091c941cfb9a8e6.zip
migrations - wip - 005 multivault migration
Diffstat (limited to 'app/scripts/migrations/003.js')
-rw-r--r--app/scripts/migrations/003.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/scripts/migrations/003.js b/app/scripts/migrations/003.js
index b25e26e01..eceaeaa4b 100644
--- a/app/scripts/migrations/003.js
+++ b/app/scripts/migrations/003.js
@@ -5,13 +5,13 @@ const newTestRpc = 'https://testrpc.metamask.io/'
module.exports = {
version,
- migrate: function (meta) {
- meta.version = version
+ migrate: function (versionedData) {
+ versionedData.meta.version = version
try {
- if (meta.data.config.provider.rpcTarget === oldTestRpc) {
- meta.data.config.provider.rpcTarget = newTestRpc
+ if (versionedData.data.config.provider.rpcTarget === oldTestRpc) {
+ versionedData.data.config.provider.rpcTarget = newTestRpc
}
} catch (e) {}
- return Promise.resolve(meta)
+ return Promise.resolve(versionedData)
},
}