Updted etherscan provider (they changed their URL).

This commit is contained in:
ricmoo 2017-04-22 11:43:32 -04:00
parent 3d56251d15
commit cafd16b960
2 changed files with 2 additions and 2 deletions

@ -1,6 +1,6 @@
{
"name": "ethers",
"version": "2.0.1",
"version": "2.0.2",
"description": "Ethereum wallet library.",
"main": "index.js",
"scripts": {

@ -75,7 +75,7 @@ function checkLogTag(blockTag) {
utils.defineProperty(EtherscanProvider.prototype, 'perform', function(method, params) {
if (!params) { params = {}; }
var url = this.testnet ? 'https://testnet.etherscan.io': 'https://api.etherscan.io';
var url = this.testnet ? 'https://ropsten.etherscan.io': 'https://api.etherscan.io';
var apiKey = '';
if (this.apiKey) { apiKey += '&apikey=' + this.apiKey; }