diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-05-12 05:16:53 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-05-12 05:16:53 +0800 |
commit | 4e9b829179f7724f581b208e2897fde79eed947b (patch) | |
tree | 2032a7c0a20d7d4ab8c428ae4b050df1fefcfb09 /app | |
parent | f926aa8f85937066eb7f7b53f2570465118129eb (diff) | |
parent | c7a491d7ace0eaa91dc495c90232cf7ace4d9a6f (diff) | |
download | tangerine-wallet-browser-4e9b829179f7724f581b208e2897fde79eed947b.tar tangerine-wallet-browser-4e9b829179f7724f581b208e2897fde79eed947b.tar.gz tangerine-wallet-browser-4e9b829179f7724f581b208e2897fde79eed947b.tar.bz2 tangerine-wallet-browser-4e9b829179f7724f581b208e2897fde79eed947b.tar.lz tangerine-wallet-browser-4e9b829179f7724f581b208e2897fde79eed947b.tar.xz tangerine-wallet-browser-4e9b829179f7724f581b208e2897fde79eed947b.tar.zst tangerine-wallet-browser-4e9b829179f7724f581b208e2897fde79eed947b.zip |
Merge branch 'master' into eyeballs
Diffstat (limited to 'app')
-rw-r--r-- | app/manifest.json | 2 | ||||
-rw-r--r-- | app/scripts/lib/migrations.js | 11 | ||||
-rw-r--r-- | app/scripts/migrations/004.js | 22 |
3 files changed, 26 insertions, 9 deletions
diff --git a/app/manifest.json b/app/manifest.json index ea4535027..9288c3503 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -1,7 +1,7 @@ { "name": "__MSG_appName__", "short_name": "Metamask", - "version": "1.8.1", + "version": "1.8.2", "manifest_version": 2, "description": "__MSG_appDescription__", "icons": { diff --git a/app/scripts/lib/migrations.js b/app/scripts/lib/migrations.js index 0b8e6265c..f026cbe53 100644 --- a/app/scripts/lib/migrations.js +++ b/app/scripts/lib/migrations.js @@ -1,10 +1,5 @@ -var path = require('path') -var fs = require('fs') - -var migration2 = require('../migrations/002') -var migration3 = require('../migrations/003') - module.exports = [ - migration2, - migration3, + require('../migrations/002'), + require('../migrations/003'), + require('../migrations/004'), ] diff --git a/app/scripts/migrations/004.js b/app/scripts/migrations/004.js new file mode 100644 index 000000000..2e3164baf --- /dev/null +++ b/app/scripts/migrations/004.js @@ -0,0 +1,22 @@ +module.exports = { + version: 4, + + migrate: function(data) { + try { + if (data.config.provider.type !== 'rpc') return data + switch (data.config.provider.rpcTarget) { + case 'https://testrpc.metamask.io/': + data.config.provider = { + type: 'testnet' + } + break + case 'https://rpc.metamask.io/': + data.config.provider = { + type: 'mainnet' + } + break + } + } catch (_) {} + return data + } +} |