aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/migrations/002.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-04-14 03:50:20 +0800
committerDan Finlay <dan@danfinlay.com>2016-04-14 03:50:20 +0800
commit2ed127b51d45eda5cb55a87494fc555fb184728a (patch)
treeda956107e061f2976d0918791b73d5cab4b347fa /app/scripts/migrations/002.js
parentfe3ba9dc2f49f4232568f0ded4a8b850336cabdf (diff)
parente0ee4365cbd10d478f9424dd1133d4330e6f4697 (diff)
downloadtangerine-wallet-browser-2ed127b51d45eda5cb55a87494fc555fb184728a.tar.gz
tangerine-wallet-browser-2ed127b51d45eda5cb55a87494fc555fb184728a.tar.zst
tangerine-wallet-browser-2ed127b51d45eda5cb55a87494fc555fb184728a.zip
Merge branch 'master' of github.com:MetaMask/metamask-plugin
Diffstat (limited to 'app/scripts/migrations/002.js')
-rw-r--r--app/scripts/migrations/002.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/scripts/migrations/002.js b/app/scripts/migrations/002.js
new file mode 100644
index 000000000..ab6a256ab
--- /dev/null
+++ b/app/scripts/migrations/002.js
@@ -0,0 +1,13 @@
+module.exports = {
+ version: 2,
+
+ migrate: function(data) {
+ try {
+ if (data.config.provider.type === 'etherscan') {
+ data.config.provider.type = 'rpc'
+ data.config.provider.rpcTarget = 'https://rpc.metamask.io/'
+ }
+ } catch (e) {}
+ return data
+ }
+}