aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/migrations/002.js
blob: 087f8bcd922f036d544d2d7c054d2494f93e4b4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
  }
}