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/migrations/src | |
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/migrations/src')
-rw-r--r-- | packages/migrations/src/utils/provider_factory.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/packages/migrations/src/utils/provider_factory.ts b/packages/migrations/src/utils/provider_factory.ts index 7a217b1e0..cf95cb576 100644 --- a/packages/migrations/src/utils/provider_factory.ts +++ b/packages/migrations/src/utils/provider_factory.ts @@ -1,10 +1,9 @@ -import { LedgerEthereumClient, LedgerSubprovider } from '@0xproject/subproviders'; +import { LedgerEthereumClient, LedgerSubprovider, RPCSubprovider } from '@0xproject/subproviders'; import Eth from '@ledgerhq/hw-app-eth'; // tslint:disable:no-implicit-dependencies import TransportNodeHid from '@ledgerhq/hw-transport-node-hid'; import { Provider } from 'ethereum-types'; import ProviderEngine = require('web3-provider-engine'); -import RpcSubprovider = require('web3-provider-engine/subproviders/rpc'); import { constants } from './constants'; @@ -22,11 +21,7 @@ export const providerFactory = { }; const ledgerSubprovider = new LedgerSubprovider(ledgerWalletConfigs); provider.addProvider(ledgerSubprovider); - provider.addProvider( - new RpcSubprovider({ - rpcUrl: constants.RPC_URL, - }), - ); + provider.addProvider(new RPCSubprovider(constants.RPC_URL)); provider.start(); return provider; }, |