aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-12-21 06:10:29 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-12-21 06:10:29 +0800
commit2effc3e267f01e620c50622138d98381883d4c32 (patch)
tree242887350701ddabf0796a0038cfcbfbb58d2cca /packages
parent21a193e51650a78e59aaf6ae49b5120fb8b73e15 (diff)
downloaddexon-sol-tools-2effc3e267f01e620c50622138d98381883d4c32.tar
dexon-sol-tools-2effc3e267f01e620c50622138d98381883d4c32.tar.gz
dexon-sol-tools-2effc3e267f01e620c50622138d98381883d4c32.tar.bz2
dexon-sol-tools-2effc3e267f01e620c50622138d98381883d4c32.tar.lz
dexon-sol-tools-2effc3e267f01e620c50622138d98381883d4c32.tar.xz
dexon-sol-tools-2effc3e267f01e620c50622138d98381883d4c32.tar.zst
dexon-sol-tools-2effc3e267f01e620c50622138d98381883d4c32.zip
fix(instant): use isTrust property to determine if provider is trust wallet
Diffstat (limited to 'packages')
-rw-r--r--packages/instant/src/util/env.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/util/env.ts b/packages/instant/src/util/env.ts
index 0f0b472b2..aedf4f5d6 100644
--- a/packages/instant/src/util/env.ts
+++ b/packages/instant/src/util/env.ts
@@ -44,7 +44,7 @@ export const envUtil = {
getProviderType(provider: Provider): ProviderType | undefined {
if (provider.constructor.name === 'EthereumProvider') {
return ProviderType.Mist;
- } else if (provider.constructor.name === 'TrustWeb3Provider') {
+ } else if ((provider as any).isTrust) {
return ProviderType.TrustWallet;
} else if ((provider as any).isParity) {
return ProviderType.Parity;