Skip to content

Commit 9df7c2f

Browse files
committed
Fixed etherscan production url.
1 parent 840f510 commit 9df7c2f

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

dist/ethers-wallet.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ function EtherscanProvider(options) {
10171017
utils.defineProperty(this, 'apiKey', apiKey);
10181018

10191019
utils.defineProperty(this, '_send', function(query, check) {
1020-
var url = (testnet ? 'https://testnet.etherscan.io/api?': 'https://etherscan.io/api?');
1020+
var url = (testnet ? 'https://testnet.etherscan.io/api?': 'https://api.etherscan.io/api?');
10211021
url += query;
10221022
if (apiKey) { url += 'apikey=' + apiKey; }
10231023
//console.log('URL', url);
@@ -2036,7 +2036,6 @@ function Wallet(privateKey, provider) {
20362036
utils.defineProperty(this, 'address', signingKey.address);
20372037

20382038
utils.defineProperty(this, 'sign', function(transaction) {
2039-
console.log(transaction);
20402039
var raw = [];
20412040
transactionFields.forEach(function(fieldInfo) {
20422041
var value = transaction[fieldInfo.name] || (new Buffer(0));

0 commit comments

Comments
 (0)