add ropsten support (#88)
This commit is contained in:
parent
6efff292b3
commit
f1d64946bc
|
@ -28,6 +28,8 @@ const isReady = (network, environment) => {
|
||||||
const formattedNetwork = network.toLowerCase();
|
const formattedNetwork = network.toLowerCase();
|
||||||
if (formattedNetwork.includes('main') || formattedNetwork.includes('live')) {
|
if (formattedNetwork.includes('main') || formattedNetwork.includes('live')) {
|
||||||
if (environment === 'livenet') return true
|
if (environment === 'livenet') return true
|
||||||
|
} else if(formattedNetwork.includes('ropsten')) {
|
||||||
|
if (environment === 'testnet') return true
|
||||||
}
|
}
|
||||||
return formattedNetwork.includes(environment.toLowerCase());
|
return formattedNetwork.includes(environment.toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue