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/testnet-faucets/src/ts | |
parent | 1229c61ba420b280708b39c04cc21f31e43ed3cf (diff) | |
download | dexon-sol-tools-2e5ff53d7271509accc226e83d76d1785350b1d2.tar dexon-sol-tools-2e5ff53d7271509accc226e83d76d1785350b1d2.tar.gz dexon-sol-tools-2e5ff53d7271509accc226e83d76d1785350b1d2.tar.bz2 dexon-sol-tools-2e5ff53d7271509accc226e83d76d1785350b1d2.tar.lz dexon-sol-tools-2e5ff53d7271509accc226e83d76d1785350b1d2.tar.xz dexon-sol-tools-2e5ff53d7271509accc226e83d76d1785350b1d2.tar.zst dexon-sol-tools-2e5ff53d7271509accc226e83d76d1785350b1d2.zip |
-fetch';
Diffstat (limited to 'packages/testnet-faucets/src/ts')
-rw-r--r-- | packages/testnet-faucets/src/ts/handler.ts | 9 |
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; } |