Updated Etherscan API URLs.

This commit is contained in:
Richard Moore 2018-06-03 16:54:13 -04:00
commit 1b6c20341e

@ -35,13 +35,13 @@ function EtherscanProvider(network, apiKey) {
baseUrl = 'https://api.etherscan.io';
break;
case 'ropsten':
baseUrl = 'https://ropsten.etherscan.io';
baseUrl = 'https://api-ropsten.etherscan.io';
break;
case 'rinkeby':
baseUrl = 'https://rinkeby.etherscan.io';
baseUrl = 'https://api-rinkeby.etherscan.io';
break;
case 'kovan':
baseUrl = 'https://kovan.etherscan.io';
baseUrl = 'https://api-kovan.etherscan.io';
break;
default:
throw new Error('unsupported network');