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