aboutsummaryrefslogtreecommitdiffstats
path: root/packages/migrations/src/utils
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-13 20:26:02 +0800
committerFabio Berger <me@fabioberger.com>2018-07-13 20:26:02 +0800
commit512502ca0873a290accb53777ca9d93f8d28e84b (patch)
tree51dba0dbfd00021a8e84f040900283337010652b /packages/migrations/src/utils
parent6ce662c7a4d04540920bc2a11a376c71bc051bb0 (diff)
downloaddexon-0x-contracts-512502ca0873a290accb53777ca9d93f8d28e84b.tar.gz
dexon-0x-contracts-512502ca0873a290accb53777ca9d93f8d28e84b.tar.zst
dexon-0x-contracts-512502ca0873a290accb53777ca9d93f8d28e84b.zip
Export Web3ProviderEngine from subproviders package
Diffstat (limited to 'packages/migrations/src/utils')
-rw-r--r--packages/migrations/src/utils/provider_factory.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/migrations/src/utils/provider_factory.ts b/packages/migrations/src/utils/provider_factory.ts
index cf95cb576..5f69b258d 100644
--- a/packages/migrations/src/utils/provider_factory.ts
+++ b/packages/migrations/src/utils/provider_factory.ts
@@ -1,9 +1,8 @@
-import { LedgerEthereumClient, LedgerSubprovider, RPCSubprovider } from '@0xproject/subproviders';
+import { LedgerEthereumClient, LedgerSubprovider, RPCSubprovider, Web3ProviderEngine } 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 { constants } from './constants';
@@ -14,7 +13,7 @@ async function ledgerEthereumNodeJsClientFactoryAsync(): Promise<LedgerEthereumC
}
export const providerFactory = {
async getLedgerProviderAsync(): Promise<Provider> {
- const provider = new ProviderEngine();
+ const provider = new Web3ProviderEngine();
const ledgerWalletConfigs = {
networkId: constants.KOVAN_NETWORK_ID,
ledgerEthereumClientFactoryAsync: ledgerEthereumNodeJsClientFactoryAsync,