diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-12-21 06:10:29 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-12-21 06:10:29 +0800 |
commit | 2effc3e267f01e620c50622138d98381883d4c32 (patch) | |
tree | 242887350701ddabf0796a0038cfcbfbb58d2cca /packages/instant/src/util/env.ts | |
parent | 21a193e51650a78e59aaf6ae49b5120fb8b73e15 (diff) | |
download | dexon-0x-contracts-2effc3e267f01e620c50622138d98381883d4c32.tar dexon-0x-contracts-2effc3e267f01e620c50622138d98381883d4c32.tar.gz dexon-0x-contracts-2effc3e267f01e620c50622138d98381883d4c32.tar.bz2 dexon-0x-contracts-2effc3e267f01e620c50622138d98381883d4c32.tar.lz dexon-0x-contracts-2effc3e267f01e620c50622138d98381883d4c32.tar.xz dexon-0x-contracts-2effc3e267f01e620c50622138d98381883d4c32.tar.zst dexon-0x-contracts-2effc3e267f01e620c50622138d98381883d4c32.zip |
fix(instant): use isTrust property to determine if provider is trust wallet
Diffstat (limited to 'packages/instant/src/util/env.ts')
-rw-r--r-- | packages/instant/src/util/env.ts | 2 |
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; |