diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-04-14 03:50:20 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-04-14 03:50:20 +0800 |
commit | 2ed127b51d45eda5cb55a87494fc555fb184728a (patch) | |
tree | da956107e061f2976d0918791b73d5cab4b347fa /app/scripts/migrations/002.js | |
parent | fe3ba9dc2f49f4232568f0ded4a8b850336cabdf (diff) | |
parent | e0ee4365cbd10d478f9424dd1133d4330e6f4697 (diff) | |
download | tangerine-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.js | 13 |
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 + } +} |