diff options
Diffstat (limited to 'app/scripts/controllers/network/createLocalhostClient.js')
-rw-r--r-- | app/scripts/controllers/network/createLocalhostClient.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/controllers/network/createLocalhostClient.js b/app/scripts/controllers/network/createLocalhostClient.js index 09b1d3c1c..36593dc70 100644 --- a/app/scripts/controllers/network/createLocalhostClient.js +++ b/app/scripts/controllers/network/createLocalhostClient.js @@ -3,14 +3,14 @@ const createFetchMiddleware = require('eth-json-rpc-middleware/fetch') const createBlockRefRewriteMiddleware = require('eth-json-rpc-middleware/block-ref-rewrite') const createBlockTrackerInspectorMiddleware = require('eth-json-rpc-middleware/block-tracker-inspector') const providerFromMiddleware = require('eth-json-rpc-middleware/providerFromMiddleware') -const BlockTracker = require('eth-block-tracker') +const createBlockTracker = require('./createBlockTracker') module.exports = createLocalhostClient -function createLocalhostClient () { +function createLocalhostClient ({ platform }) { const fetchMiddleware = createFetchMiddleware({ rpcUrl: 'http://localhost:8545/' }) const blockProvider = providerFromMiddleware(fetchMiddleware) - const blockTracker = new BlockTracker({ provider: blockProvider, pollingInterval: 1000 }) + const blockTracker = createBlockTracker({ provider: blockProvider, pollingInterval: 1000 }, platform) const networkMiddleware = mergeMiddleware([ createBlockRefRewriteMiddleware({ blockTracker }), |