blob: 1329a1eed7c0aca81415e7a12ac4fd4a3b1f89b1 (
plain) (
tree)
|
|
module.exports = {
version: 4,
migrate: function (data) {
try {
if (data.config.provider.type !== 'rpc') return data
switch (data.config.provider.rpcTarget) {
case 'https://testrpc.metamask.io/':
data.config.provider = {
type: 'testnet',
}
break
case 'https://rpc.metamask.io/':
data.config.provider = {
type: 'mainnet',
}
break
}
} catch (_) {}
return data
},
}
|