aboutsummaryrefslogtreecommitdiffstats
path: root/packages/testnet-faucets/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-13 18:42:01 +0800
committerFabio Berger <me@fabioberger.com>2018-07-13 18:42:01 +0800
commit2e5ff53d7271509accc226e83d76d1785350b1d2 (patch)
tree020bbe96131fcd173d7902b4c86e2b4141183f30 /packages/testnet-faucets/src
parent1229c61ba420b280708b39c04cc21f31e43ed3cf (diff)
downloaddexon-0x-contracts-2e5ff53d7271509accc226e83d76d1785350b1d2.tar
dexon-0x-contracts-2e5ff53d7271509accc226e83d76d1785350b1d2.tar.gz
dexon-0x-contracts-2e5ff53d7271509accc226e83d76d1785350b1d2.tar.bz2
dexon-0x-contracts-2e5ff53d7271509accc226e83d76d1785350b1d2.tar.lz
dexon-0x-contracts-2e5ff53d7271509accc226e83d76d1785350b1d2.tar.xz
dexon-0x-contracts-2e5ff53d7271509accc226e83d76d1785350b1d2.tar.zst
dexon-0x-contracts-2e5ff53d7271509accc226e83d76d1785350b1d2.zip
-fetch';
Diffstat (limited to 'packages/testnet-faucets/src')
-rw-r--r--packages/testnet-faucets/src/ts/handler.ts9
1 files changed, 2 insertions, 7 deletions
diff --git a/packages/testnet-faucets/src/ts/handler.ts b/packages/testnet-faucets/src/ts/handler.ts
index 6d26691d6..a725a35f5 100644
--- a/packages/testnet-faucets/src/ts/handler.ts
+++ b/packages/testnet-faucets/src/ts/handler.ts
@@ -5,9 +5,8 @@ import { Provider } from 'ethereum-types';
import * as express from 'express';
import * as _ from 'lodash';
-import { NonceTrackerSubprovider, PrivateKeyWalletSubprovider } from '@0xproject/subproviders';
+import { NonceTrackerSubprovider, PrivateKeyWalletSubprovider, RPCSubprovider } from '@0xproject/subproviders';
import ProviderEngine = require('web3-provider-engine');
-import RpcSubprovider = require('web3-provider-engine/subproviders/rpc');
import { configs } from './configs';
import { constants } from './constants';
@@ -42,11 +41,7 @@ export class Handler {
const engine = new ProviderEngine();
engine.addProvider(new NonceTrackerSubprovider());
engine.addProvider(new PrivateKeyWalletSubprovider(configs.DISPENSER_PRIVATE_KEY));
- engine.addProvider(
- new RpcSubprovider({
- rpcUrl,
- }),
- );
+ engine.addProvider(new RPCSubprovider(rpcUrl));
engine.start();
return engine;
}