aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/test/integration
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/subproviders/test/integration
parent1229c61ba420b280708b39c04cc21f31e43ed3cf (diff)
downloaddexon-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/subproviders/test/integration')
-rw-r--r--packages/subproviders/test/integration/ledger_subprovider_test.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/subproviders/test/integration/ledger_subprovider_test.ts b/packages/subproviders/test/integration/ledger_subprovider_test.ts
index 196cecf32..e5233fdbc 100644
--- a/packages/subproviders/test/integration/ledger_subprovider_test.ts
+++ b/packages/subproviders/test/integration/ledger_subprovider_test.ts
@@ -8,9 +8,8 @@ import * as chai from 'chai';
import { JSONRPCResponsePayload } from 'ethereum-types';
import * as ethUtils from 'ethereumjs-util';
import Web3ProviderEngine = require('web3-provider-engine');
-import RpcSubprovider = require('web3-provider-engine/subproviders/rpc');
-import { LedgerSubprovider } from '../../src';
+import { LedgerSubprovider, RPCSubprovider } from '../../src';
import { LedgerEthereumClient } from '../../src/types';
import { chaiSetup } from '../chai_setup';
import { fixtureData } from '../utils/fixture_data';
@@ -86,9 +85,7 @@ describe('LedgerSubprovider', () => {
before(() => {
ledgerProvider = new Web3ProviderEngine();
ledgerProvider.addProvider(ledgerSubprovider);
- const httpProvider = new RpcSubprovider({
- rpcUrl: 'http://localhost:8545',
- });
+ const httpProvider = new RPCSubprovider('http://localhost:8545');
ledgerProvider.addProvider(httpProvider);
ledgerProvider.start();