add ropsten support (#88)

This commit is contained in:
Ricardo Guilherme Schmidt 2018-12-07 12:52:30 -02:00 committed by GitHub
parent 6efff292b3
commit f1d64946bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ const isReady = (network, environment) => {
const formattedNetwork = network.toLowerCase();
if (formattedNetwork.includes('main') || formattedNetwork.includes('live')) {
if (environment === 'livenet') return true
} else if(formattedNetwork.includes('ropsten')) {
if (environment === 'testnet') return true
}
return formattedNetwork.includes(environment.toLowerCase());
}