This repository was archived by the owner on Mar 5, 2025. It is now read-only.
File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 14
14
You should have received a copy of the GNU Lesser General Public License
15
15
along with ethereum.js. If not, see <http://www.gnu.org/licenses/>.
16
16
*/
17
- /** @file websocket .js
17
+ /** @file autoprovider .js
18
18
* @authors :
19
19
* Marek Kotewicz <[email protected] >
20
20
* Marian Oancea <[email protected] >
28
28
*/
29
29
if ( process . env . NODE_ENV !== 'build' ) {
30
30
var WebSocket = require ( 'ws' ) ; // jshint ignore:line
31
- var web3 = require ( './web3 ' ) ; // jshint ignore:line
31
+ var web3 = require ( './main.js ' ) ; // jshint ignore:line
32
32
}
33
33
34
34
var AutoProvider = function ( userOptions ) {
@@ -44,13 +44,13 @@ var AutoProvider = function (userOptions) {
44
44
this . provider = new web3 . providers . QtProvider ( ) ;
45
45
return ;
46
46
}
47
-
47
+
48
48
userOptions = userOptions || { } ;
49
49
var options = {
50
50
httprpc : userOptions . httprpc || 'http://localhost:8080' ,
51
51
websockets : userOptions . websockets || 'ws://localhost:40404/eth'
52
52
} ;
53
-
53
+
54
54
var self = this ;
55
55
var closeWithSuccess = function ( success ) {
56
56
ws . close ( ) ;
@@ -71,7 +71,7 @@ var AutoProvider = function (userOptions) {
71
71
var ws = new WebSocket ( options . websockets ) ;
72
72
73
73
ws . onopen = function ( ) {
74
- closeWithSuccess ( true ) ;
74
+ closeWithSuccess ( true ) ;
75
75
} ;
76
76
77
77
ws . onerror = function ( ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ethereum.js" ,
3
3
"namespace" : " ethereum" ,
4
- "version" : " 0.0.3 " ,
4
+ "version" : " 0.0.5 " ,
5
5
"description" : " Ethereum Compatible JavaScript API" ,
6
6
"main" : " ./index.js" ,
7
7
"directories" : {
You can’t perform that action at this time.
0 commit comments