diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-14 00:51:21 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-14 00:51:21 +0800 |
commit | de1029d5ef7f069a2215557e901f3230f6da98fa (patch) | |
tree | 71af08e3abf4309b91155122531a46bc2c48c3ba /packages | |
parent | efc64cf17fe01a5dbed817be31f7d8c7f9cd078a (diff) | |
download | dexon-sol-tools-de1029d5ef7f069a2215557e901f3230f6da98fa.tar dexon-sol-tools-de1029d5ef7f069a2215557e901f3230f6da98fa.tar.gz dexon-sol-tools-de1029d5ef7f069a2215557e901f3230f6da98fa.tar.bz2 dexon-sol-tools-de1029d5ef7f069a2215557e901f3230f6da98fa.tar.lz dexon-sol-tools-de1029d5ef7f069a2215557e901f3230f6da98fa.tar.xz dexon-sol-tools-de1029d5ef7f069a2215557e901f3230f6da98fa.tar.zst dexon-sol-tools-de1029d5ef7f069a2215557e901f3230f6da98fa.zip |
Fix linter issues
Diffstat (limited to 'packages')
-rw-r--r-- | packages/website/ts/blockchain.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts index 099171c45..805b48856 100644 --- a/packages/website/ts/blockchain.ts +++ b/packages/website/ts/blockchain.ts @@ -17,7 +17,6 @@ import { RedundantSubprovider, RPCSubprovider, SignerSubprovider, - Subprovider, Web3ProviderEngine, } from '@0xproject/subproviders'; import { @@ -159,7 +158,7 @@ export class Blockchain { const rpcSubproviders = _.map(configs.PUBLIC_NODE_URLS_BY_NETWORK_ID[networkIdIfExists], publicNodeUrl => { return new RPCSubprovider(publicNodeUrl); }); - provider.addProvider(new RedundantSubprovider(rpcSubproviders as Subprovider[])); + provider.addProvider(new RedundantSubprovider(rpcSubproviders)); provider.start(); return [provider, ledgerSubprovider]; } else if (doesInjectedWeb3Exist && isPublicNodeAvailableForNetworkId) { @@ -171,7 +170,7 @@ export class Blockchain { const rpcSubproviders = _.map(publicNodeUrlsIfExistsForNetworkId, publicNodeUrl => { return new RPCSubprovider(publicNodeUrl); }); - provider.addProvider(new RedundantSubprovider(rpcSubproviders as Subprovider[])); + provider.addProvider(new RedundantSubprovider(rpcSubproviders)); provider.start(); return [provider, undefined]; } else if (doesInjectedWeb3Exist) { @@ -187,7 +186,7 @@ export class Blockchain { const rpcSubproviders = _.map(configs.PUBLIC_NODE_URLS_BY_NETWORK_ID[networkId], publicNodeUrl => { return new RPCSubprovider(publicNodeUrl); }); - provider.addProvider(new RedundantSubprovider(rpcSubproviders as Subprovider[])); + provider.addProvider(new RedundantSubprovider(rpcSubproviders)); provider.start(); return [provider, undefined]; } |