diff options
author | Jacob Evans <jacob@dekz.net> | 2018-02-03 06:44:29 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-02-03 06:44:29 +0800 |
commit | 7f257e258f5d5dedc9bc1edbd38180cc872bc2a0 (patch) | |
tree | 3323c4bd10217d54c6dab774b7e97e421c0c168e /packages/website/ts/blockchain.ts | |
parent | 6a9d3de0f98dee20963f0f70a9b7ad08b9508100 (diff) | |
download | dexon-sol-tools-7f257e258f5d5dedc9bc1edbd38180cc872bc2a0.tar dexon-sol-tools-7f257e258f5d5dedc9bc1edbd38180cc872bc2a0.tar.gz dexon-sol-tools-7f257e258f5d5dedc9bc1edbd38180cc872bc2a0.tar.bz2 dexon-sol-tools-7f257e258f5d5dedc9bc1edbd38180cc872bc2a0.tar.lz dexon-sol-tools-7f257e258f5d5dedc9bc1edbd38180cc872bc2a0.tar.xz dexon-sol-tools-7f257e258f5d5dedc9bc1edbd38180cc872bc2a0.tar.zst dexon-sol-tools-7f257e258f5d5dedc9bc1edbd38180cc872bc2a0.zip |
Change the InjectedWeb3Subprovider to accept Web3.Provider
Diffstat (limited to 'packages/website/ts/blockchain.ts')
-rw-r--r-- | packages/website/ts/blockchain.ts | 2 |
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(); |