From d11243cf34877238f227ee9b179243d44003a6ec Mon Sep 17 00:00:00 2001 From: Ian Pun Date: Tue, 19 Jun 2018 10:30:11 -0700 Subject: [PATCH] added httpProvider user and password support --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index cf04d37..898058d 100644 --- a/index.js +++ b/index.js @@ -61,7 +61,7 @@ var MultiHttpProvider = function(hosts, timeout) { this._callbacks = []; this._traceMessage=false; this.providers=hosts.map(function(host) { - return new Web3.providers.HttpProvider(host, timeout);}); + return new Web3.providers.HttpProvider(host.address, timeout, host.user, host.password);}); this.subscriptions = {}; // will contains subscriptions detected via the subscription rpc methods, each obj being // xxxx: {newId:yyyy, method:'one of new method', params:[....]} this.switchToNextConnected();