aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-04-13 05:16:39 +0800
committerDan Finlay <dan@danfinlay.com>2016-04-13 05:16:39 +0800
commiteddaf71e31a2267616c2665c76113bfb6c589bcb (patch)
treea7045953a47e705fcf8d3f7b1bed89a1e27ee94f /app
parent3e3dd2b21b9f5c3575e5be8c8c2d8b1f665c6a59 (diff)
downloadtangerine-wallet-browser-eddaf71e31a2267616c2665c76113bfb6c589bcb.tar
tangerine-wallet-browser-eddaf71e31a2267616c2665c76113bfb6c589bcb.tar.gz
tangerine-wallet-browser-eddaf71e31a2267616c2665c76113bfb6c589bcb.tar.bz2
tangerine-wallet-browser-eddaf71e31a2267616c2665c76113bfb6c589bcb.tar.lz
tangerine-wallet-browser-eddaf71e31a2267616c2665c76113bfb6c589bcb.tar.xz
tangerine-wallet-browser-eddaf71e31a2267616c2665c76113bfb6c589bcb.tar.zst
tangerine-wallet-browser-eddaf71e31a2267616c2665c76113bfb6c589bcb.zip
Migrate etherscan providers to our RPC
Diffstat (limited to 'app')
-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
+ }
+}