Skip to content

Commit a86bafe

Browse files
committed
10 sec default timeout and added node 9 to travis
1 parent b515ef9 commit a86bafe

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_js:
33
- 6.5.0
44
- 7
55
- 8
6+
- 9
67
env:
78
- CXX=g++-4.8
89
addons:

lib/init.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const account = require('./account');
1313
/**
1414
* @param {string} apiKey - (optional) Your Etherscan APIkey
1515
* @param {string} chain - (optional) Testnet chain keys [ropsten, rinkeby, kovan]
16+
* @param {number} timeout - (optional) Timeout in milliseconds for requests, default 10000
1617
*/
1718
module.exports = function(apiKey, chain, timeout) {
1819

@@ -22,7 +23,7 @@ module.exports = function(apiKey, chain, timeout) {
2223

2324

2425
if (!timeout) {
25-
timeout = 3000;
26+
timeout = 10000;
2627
}
2728

2829
var getRequest = require('./get-request')(chain, timeout);

0 commit comments

Comments
 (0)