diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-17 07:41:54 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-17 07:41:54 +0800 |
commit | 1564415e5dc29cd76ac17f679ed83e0973764153 (patch) | |
tree | efeba5d9948e588dc2ff9c36575c0c2d1a2b2e74 /packages/instant/src/util/provider_factory.ts | |
parent | 83a6d7b97d9bea901c4d02d1a46186e64e3db367 (diff) | |
download | dexon-sol-tools-1564415e5dc29cd76ac17f679ed83e0973764153.tar dexon-sol-tools-1564415e5dc29cd76ac17f679ed83e0973764153.tar.gz dexon-sol-tools-1564415e5dc29cd76ac17f679ed83e0973764153.tar.bz2 dexon-sol-tools-1564415e5dc29cd76ac17f679ed83e0973764153.tar.lz dexon-sol-tools-1564415e5dc29cd76ac17f679ed83e0973764153.tar.xz dexon-sol-tools-1564415e5dc29cd76ac17f679ed83e0973764153.tar.zst dexon-sol-tools-1564415e5dc29cd76ac17f679ed83e0973764153.zip |
Specify fallback web3 provider in analytics
Diffstat (limited to 'packages/instant/src/util/provider_factory.ts')
-rw-r--r-- | packages/instant/src/util/provider_factory.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/instant/src/util/provider_factory.ts b/packages/instant/src/util/provider_factory.ts index 603f7674d..d77407521 100644 --- a/packages/instant/src/util/provider_factory.ts +++ b/packages/instant/src/util/provider_factory.ts @@ -29,6 +29,10 @@ export const providerFactory = { providerEngine.addProvider(new RPCSubprovider(rpcUrl)); // // Start the Provider Engine providerEngine.start(); + // This feels a bit dirty, but was the only way I could think of + // checking to see if this engine is our fallback engine, and not + // another Web3Provider engine provided by some dapp browser + (providerEngine as any).zeroExInstantFallbackEngine = true; return providerEngine; }, }; |