aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-14 00:51:21 +0800
committerFabio Berger <me@fabioberger.com>2018-07-14 00:51:21 +0800
commitde1029d5ef7f069a2215557e901f3230f6da98fa (patch)
tree71af08e3abf4309b91155122531a46bc2c48c3ba /packages/website/ts
parentefc64cf17fe01a5dbed817be31f7d8c7f9cd078a (diff)
downloaddexon-0x-contracts-de1029d5ef7f069a2215557e901f3230f6da98fa.tar.gz
dexon-0x-contracts-de1029d5ef7f069a2215557e901f3230f6da98fa.tar.zst
dexon-0x-contracts-de1029d5ef7f069a2215557e901f3230f6da98fa.zip
Fix linter issues
Diffstat (limited to 'packages/website/ts')
-rw-r--r--packages/website/ts/blockchain.ts7
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];
}