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 | |
parent | 21a193e51650a78e59aaf6ae49b5120fb8b73e15 (diff) | |
download | dexon-sol-tools-2effc3e267f01e620c50622138d98381883d4c32.tar.gz 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.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; |