diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-13 18:42:01 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-13 18:42:01 +0800 |
commit | 2e5ff53d7271509accc226e83d76d1785350b1d2 (patch) | |
tree | 020bbe96131fcd173d7902b4c86e2b4141183f30 /packages/dev-utils | |
parent | 1229c61ba420b280708b39c04cc21f31e43ed3cf (diff) | |
download | dexon-0x-contracts-2e5ff53d7271509accc226e83d76d1785350b1d2.tar.gz dexon-0x-contracts-2e5ff53d7271509accc226e83d76d1785350b1d2.tar.zst dexon-0x-contracts-2e5ff53d7271509accc226e83d76d1785350b1d2.zip |
-fetch';
Diffstat (limited to 'packages/dev-utils')
-rw-r--r-- | packages/dev-utils/src/web3_factory.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/dev-utils/src/web3_factory.ts b/packages/dev-utils/src/web3_factory.ts index 362a6c3c6..67112d410 100644 --- a/packages/dev-utils/src/web3_factory.ts +++ b/packages/dev-utils/src/web3_factory.ts @@ -1,7 +1,11 @@ import ProviderEngine = require('web3-provider-engine'); -import RpcSubprovider = require('web3-provider-engine/subproviders/rpc'); -import { EmptyWalletSubprovider, FakeGasEstimateSubprovider, GanacheSubprovider } from '@0xproject/subproviders'; +import { + EmptyWalletSubprovider, + FakeGasEstimateSubprovider, + GanacheSubprovider, + RPCSubprovider, +} from '@0xproject/subproviders'; import * as fs from 'fs'; import * as _ from 'lodash'; @@ -49,11 +53,7 @@ export const web3Factory = { }), ); } else { - provider.addProvider( - new RpcSubprovider({ - rpcUrl: config.rpcUrl || constants.RPC_URL, - }), - ); + provider.addProvider(new RPCSubprovider(config.rpcUrl || constants.RPC_URL)); } provider.start(); return provider; |