aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/blockchain.ts
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-04-11 13:12:02 +0800
committerJacob Evans <jacob@dekz.net>2018-04-11 13:12:02 +0800
commitf44ef7ce59cd5c811a92662d3fb095f21d80f665 (patch)
treec55df9d4c6cb145692c07de25717ce5870445d15 /packages/website/ts/blockchain.ts
parentb08c616713e153ca767d2f01976da5f1ef903251 (diff)
downloaddexon-sol-tools-f44ef7ce59cd5c811a92662d3fb095f21d80f665.tar
dexon-sol-tools-f44ef7ce59cd5c811a92662d3fb095f21d80f665.tar.gz
dexon-sol-tools-f44ef7ce59cd5c811a92662d3fb095f21d80f665.tar.bz2
dexon-sol-tools-f44ef7ce59cd5c811a92662d3fb095f21d80f665.tar.lz
dexon-sol-tools-f44ef7ce59cd5c811a92662d3fb095f21d80f665.tar.xz
dexon-sol-tools-f44ef7ce59cd5c811a92662d3fb095f21d80f665.tar.zst
dexon-sol-tools-f44ef7ce59cd5c811a92662d3fb095f21d80f665.zip
Update website to support latest ledger
Diffstat (limited to 'packages/website/ts/blockchain.ts')
-rw-r--r--packages/website/ts/blockchain.ts9
1 files changed, 1 insertions, 8 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts
index fd34ab82d..bb1f47dd0 100644
--- a/packages/website/ts/blockchain.ts
+++ b/packages/website/ts/blockchain.ts
@@ -20,7 +20,6 @@ import {
InjectedWeb3Subprovider,
ledgerEthereumBrowserClientFactoryAsync,
LedgerSubprovider,
- LedgerWalletSubprovider,
RedundantRPCSubprovider,
} from '@0xproject/subproviders';
import { Provider } from '@0xproject/types';
@@ -76,7 +75,7 @@ export class Blockchain {
private _userAddressIfExists: string;
private _cachedProvider: Provider;
private _cachedProviderNetworkId: number;
- private _ledgerSubprovider: LedgerWalletSubprovider;
+ private _ledgerSubprovider: LedgerSubprovider;
private _defaultGasPrice: BigNumber;
private static _getNameGivenProvider(provider: Provider): string {
const providerType = utils.getProviderType(provider);
@@ -168,12 +167,6 @@ export class Blockchain {
}
this._ledgerSubprovider.setPath(path);
}
- public updateLedgerDerivationIndex(pathIndex: number) {
- if (_.isUndefined(this._ledgerSubprovider)) {
- return; // noop
- }
- this._ledgerSubprovider.setPathIndex(pathIndex);
- }
public async updateProviderToLedgerAsync(networkId: number) {
utils.assert(!_.isUndefined(this._zeroEx), 'ZeroEx must be instantiated.');