aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/migrations/002.js
blob: ab6a256ab86c9bbb54176384dd444ebba00aa93c (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
  }
}