From eddaf71e31a2267616c2665c76113bfb6c589bcb Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Tue, 12 Apr 2016 14:16:39 -0700 Subject: Migrate etherscan providers to our RPC --- app/scripts/migrations/002.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/scripts/migrations/002.js (limited to 'app/scripts') 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 + } +} -- cgit v1.2.3