Updted etherscan provider (they changed their URL).
This commit is contained in:
parent
3d56251d15
commit
cafd16b960
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user