1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 02:58:09 +01:00
metamask-extension/app/scripts/migrations/003.js

16 lines
334 B
JavaScript
Raw Normal View History

2016-04-22 22:36:04 +02:00
var oldTestRpc = 'https://rawtestrpc.metamask.io/'
var newTestRpc = 'https://testrpc.metamask.io/'
module.exports = {
2016-04-22 22:36:04 +02:00
version: 3,
2016-06-21 22:18:32 +02:00
migrate: function (data) {
try {
2016-04-22 22:36:04 +02:00
if (data.config.provider.rpcTarget === oldTestRpc) {
data.config.provider.rpcTarget = newTestRpc
}
} catch (e) {}
return data
2016-06-21 22:18:32 +02:00
},
}