Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 04845d4

Browse files
committed
Merge pull request #1 from cubedro/master
Fixed autoprovider bug
2 parents 27a8799 + 0d526d6 commit 04845d4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/autoprovider.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
You should have received a copy of the GNU Lesser General Public License
1515
along with ethereum.js. If not, see <http://www.gnu.org/licenses/>.
1616
*/
17-
/** @file websocket.js
17+
/** @file autoprovider.js
1818
* @authors:
1919
* Marek Kotewicz <[email protected]>
2020
* Marian Oancea <[email protected]>
@@ -28,7 +28,7 @@
2828
*/
2929
if (process.env.NODE_ENV !== 'build') {
3030
var WebSocket = require('ws'); // jshint ignore:line
31-
var web3 = require('./web3'); // jshint ignore:line
31+
var web3 = require('./main.js'); // jshint ignore:line
3232
}
3333

3434
var AutoProvider = function (userOptions) {
@@ -44,13 +44,13 @@ var AutoProvider = function (userOptions) {
4444
this.provider = new web3.providers.QtProvider();
4545
return;
4646
}
47-
47+
4848
userOptions = userOptions || {};
4949
var options = {
5050
httprpc: userOptions.httprpc || 'http://localhost:8080',
5151
websockets: userOptions.websockets || 'ws://localhost:40404/eth'
5252
};
53-
53+
5454
var self = this;
5555
var closeWithSuccess = function (success) {
5656
ws.close();
@@ -71,7 +71,7 @@ var AutoProvider = function (userOptions) {
7171
var ws = new WebSocket(options.websockets);
7272

7373
ws.onopen = function() {
74-
closeWithSuccess(true);
74+
closeWithSuccess(true);
7575
};
7676

7777
ws.onerror = function() {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ethereum.js",
33
"namespace": "ethereum",
4-
"version": "0.0.3",
4+
"version": "0.0.5",
55
"description": "Ethereum Compatible JavaScript API",
66
"main": "./index.js",
77
"directories": {

0 commit comments

Comments
 (0)