Merge pull request #135 from MetaMask/DeprecateRawTestRpc
Migrate all users off `rawtestrpc` test rpcfeature/default_network_editable
commit
ee4f6b57ad
@ -0,0 +1,15 @@ |
||||
var oldTestRpc = 'https://rawtestrpc.metamask.io/' |
||||
var newTestRpc = 'https://testrpc.metamask.io/' |
||||
|
||||
module.exports = { |
||||
version: 3, |
||||
|
||||
migrate: function(data) { |
||||
try { |
||||
if (data.config.provider.rpcTarget === oldTestRpc) { |
||||
data.config.provider.rpcTarget = newTestRpc |
||||
} |
||||
} catch (e) {} |
||||
return data |
||||
} |
||||
} |
Loading…
Reference in new issue