diff options
author | kumavis <kumavis@users.noreply.github.com> | 2017-01-25 12:38:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-25 12:38:13 +0800 |
commit | d30612a2168b02c39a3eaa86f29e47d9edda07d8 (patch) | |
tree | 27eab17687c0c7a1b2583f51abf8064fa54de82a /app/scripts/migrations/003.js | |
parent | 4f39e8192cd94ad45d68992d5d1129f1612b1aa6 (diff) | |
parent | 0f33acb80ca90e07e6f7b7c083f52a1f4344c48e (diff) | |
download | tangerine-wallet-browser-d30612a2168b02c39a3eaa86f29e47d9edda07d8.tar tangerine-wallet-browser-d30612a2168b02c39a3eaa86f29e47d9edda07d8.tar.gz tangerine-wallet-browser-d30612a2168b02c39a3eaa86f29e47d9edda07d8.tar.bz2 tangerine-wallet-browser-d30612a2168b02c39a3eaa86f29e47d9edda07d8.tar.lz tangerine-wallet-browser-d30612a2168b02c39a3eaa86f29e47d9edda07d8.tar.xz tangerine-wallet-browser-d30612a2168b02c39a3eaa86f29e47d9edda07d8.tar.zst tangerine-wallet-browser-d30612a2168b02c39a3eaa86f29e47d9edda07d8.zip |
Merge pull request #999 from MetaMask/obs-store2
background - introduce ObservableStore (mark II)
Diffstat (limited to 'app/scripts/migrations/003.js')
-rw-r--r-- | app/scripts/migrations/003.js | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/app/scripts/migrations/003.js b/app/scripts/migrations/003.js index 617c55c09..eceaeaa4b 100644 --- a/app/scripts/migrations/003.js +++ b/app/scripts/migrations/003.js @@ -1,15 +1,17 @@ -var oldTestRpc = 'https://rawtestrpc.metamask.io/' -var newTestRpc = 'https://testrpc.metamask.io/' +const version = 3 +const oldTestRpc = 'https://rawtestrpc.metamask.io/' +const newTestRpc = 'https://testrpc.metamask.io/' module.exports = { - version: 3, + version, - migrate: function (data) { + migrate: function (versionedData) { + versionedData.meta.version = version try { - if (data.config.provider.rpcTarget === oldTestRpc) { - data.config.provider.rpcTarget = newTestRpc + if (versionedData.data.config.provider.rpcTarget === oldTestRpc) { + versionedData.data.config.provider.rpcTarget = newTestRpc } } catch (e) {} - return data + return Promise.resolve(versionedData) }, } |