aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorJacob Evans <dekz@dekz.net>2018-02-06 09:16:34 +0800
committerGitHub <noreply@github.com>2018-02-06 09:16:34 +0800
commit61434a91218eb4adec0de6095a51d07203f1f5bb (patch)
treef0d695cf1960ce1068a5ed4be2e646a2ffe2a904 /packages/website
parent2205e2b9a0dab345a14724731098043d04827c4f (diff)
parentd14ae70776e82c8a61e1c41219c40ec283890a8a (diff)
downloaddexon-0x-contracts-61434a91218eb4adec0de6095a51d07203f1f5bb.tar.gz
dexon-0x-contracts-61434a91218eb4adec0de6095a51d07203f1f5bb.tar.zst
dexon-0x-contracts-61434a91218eb4adec0de6095a51d07203f1f5bb.zip
Merge pull request #363 from 0xProject/refactor/subproviders/injected-provider-constructor
Change the InjectedWeb3Subprovider to accept Web3.Provider
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/blockchain.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts
index 71995e2cd..099efb405 100644
--- a/packages/website/ts/blockchain.ts
+++ b/packages/website/ts/blockchain.ts
@@ -100,7 +100,7 @@ export class Blockchain {
// We catch all requests involving a users account and send it to the injectedWeb3
// instance. All other requests go to the public hosted node.
provider = new ProviderEngine();
- provider.addProvider(new InjectedWeb3Subprovider(injectedWeb3));
+ provider.addProvider(new InjectedWeb3Subprovider(injectedWeb3.currentProvider));
provider.addProvider(new FilterSubprovider());
provider.addProvider(new RedundantRPCSubprovider(publicNodeUrlsIfExistsForNetworkId));
provider.start();