mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-25 12:57:17 +00:00
fixes for autoprovider
This commit is contained in:
parent
823fb2995b
commit
86b417e83f
8
dist/ethereum.js
vendored
8
dist/ethereum.js
vendored
@ -387,10 +387,9 @@ module.exports = {
|
||||
* if it fails, it uses HttpRpcProvider
|
||||
*/
|
||||
|
||||
// TODO: is these line is supposed to be here?
|
||||
var web3 = require('./web3'); // jshint ignore:line
|
||||
if ("build" !== 'build') {/*
|
||||
var WebSocket = require('ws'); // jshint ignore:line
|
||||
var web3 = require('./web3'); // jshint ignore:line
|
||||
*/}
|
||||
|
||||
/**
|
||||
@ -433,7 +432,7 @@ var AutoProvider = function (userOptions) {
|
||||
self.poll = self.provider.poll.bind(self.provider);
|
||||
}
|
||||
self.sendQueue.forEach(function (payload) {
|
||||
self.provider(payload);
|
||||
self.provider.send(payload);
|
||||
});
|
||||
self.onmessageQueue.forEach(function (handler) {
|
||||
self.provider.onmessage = handler;
|
||||
@ -474,7 +473,7 @@ Object.defineProperty(AutoProvider.prototype, 'onmessage', {
|
||||
|
||||
module.exports = AutoProvider;
|
||||
|
||||
},{}],3:[function(require,module,exports){
|
||||
},{"./web3":8}],3:[function(require,module,exports){
|
||||
/*
|
||||
This file is part of ethereum.js.
|
||||
|
||||
@ -807,7 +806,6 @@ module.exports = HttpRpcProvider;
|
||||
* @date 2014
|
||||
*/
|
||||
|
||||
// TODO: is these line is supposed to be here?
|
||||
var web3 = require('./web3'); // jshint ignore:line
|
||||
|
||||
/**
|
||||
|
6
dist/ethereum.js.map
vendored
6
dist/ethereum.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/ethereum.min.js
vendored
2
dist/ethereum.min.js
vendored
File diff suppressed because one or more lines are too long
@ -27,10 +27,9 @@
|
||||
* if it fails, it uses HttpRpcProvider
|
||||
*/
|
||||
|
||||
// TODO: is these line is supposed to be here?
|
||||
var web3 = require('./web3'); // jshint ignore:line
|
||||
if (process.env.NODE_ENV !== 'build') {
|
||||
var WebSocket = require('ws'); // jshint ignore:line
|
||||
var web3 = require('./web3'); // jshint ignore:line
|
||||
}
|
||||
|
||||
/**
|
||||
@ -73,7 +72,7 @@ var AutoProvider = function (userOptions) {
|
||||
self.poll = self.provider.poll.bind(self.provider);
|
||||
}
|
||||
self.sendQueue.forEach(function (payload) {
|
||||
self.provider(payload);
|
||||
self.provider.send(payload);
|
||||
});
|
||||
self.onmessageQueue.forEach(function (handler) {
|
||||
self.provider.onmessage = handler;
|
||||
|
@ -23,7 +23,6 @@
|
||||
* @date 2014
|
||||
*/
|
||||
|
||||
// TODO: is these line is supposed to be here?
|
||||
var web3 = require('./web3'); // jshint ignore:line
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user