Skip to content

Commit

Permalink
Updated Etherscan API URLs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jun 3, 2018
2 parents cd360a4 + 75eb7ed commit 1b6c203
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions providers/etherscan-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 1b6c203

Please sign in to comment.