aboutsummaryrefslogblamecommitdiffstats
path: root/app/scripts/migrations/002.js
blob: 97f427d3aaf0de79410173e27f675aa208020912 (plain) (tree)
1
2
3
4
5
6
7
8

                 
                  
          
 

                            
         


                                                                        

                  
                                
    
 
const version = 2

module.exports = {
  version,

  migrate: function (meta) {
    meta.version = version
    try {
      if (meta.data.config.provider.type === 'etherscan') {
        meta.data.config.provider.type = 'rpc'
        meta.data.config.provider.rpcTarget = 'https://rpc.metamask.io/'
      }
    } catch (e) {}
    return Promise.resolve(meta)
  },
}