diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-19 18:36:41 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-19 18:36:41 +0800 |
commit | 86b417e83f1f631cd55d16596b458b74601c43e5 (patch) | |
tree | aea7f955094fab0bce6ee03bea8eaac6d27f5547 /lib | |
parent | 823fb2995b0ff6ebaf257206ad1ecf827b8567b8 (diff) | |
download | go-tangerine-86b417e83f1f631cd55d16596b458b74601c43e5.tar go-tangerine-86b417e83f1f631cd55d16596b458b74601c43e5.tar.gz go-tangerine-86b417e83f1f631cd55d16596b458b74601c43e5.tar.bz2 go-tangerine-86b417e83f1f631cd55d16596b458b74601c43e5.tar.lz go-tangerine-86b417e83f1f631cd55d16596b458b74601c43e5.tar.xz go-tangerine-86b417e83f1f631cd55d16596b458b74601c43e5.tar.zst go-tangerine-86b417e83f1f631cd55d16596b458b74601c43e5.zip |
fixes for autoprovider
Diffstat (limited to 'lib')
-rw-r--r-- | lib/autoprovider.js | 5 | ||||
-rw-r--r-- | lib/providermanager.js | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/autoprovider.js b/lib/autoprovider.js index a2c265ccb..0501b93d8 100644 --- a/lib/autoprovider.js +++ b/lib/autoprovider.js @@ -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; diff --git a/lib/providermanager.js b/lib/providermanager.js index 2697ebbd7..f79a9b087 100644 --- a/lib/providermanager.js +++ b/lib/providermanager.js @@ -23,7 +23,6 @@ * @date 2014 */ -// TODO: is these line is supposed to be here? var web3 = require('./web3'); // jshint ignore:line /** |