diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-12-15 06:10:15 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-12-15 06:10:15 +0800 |
commit | 21a193e51650a78e59aaf6ae49b5120fb8b73e15 (patch) | |
tree | 687d226c40d7707dd7ffbe79776a9f903bab677e /packages/instant/src/util/env.ts | |
parent | 926fcb296fb728c3520c638a43a5da950393832e (diff) | |
download | dexon-sol-tools-21a193e51650a78e59aaf6ae49b5120fb8b73e15.tar dexon-sol-tools-21a193e51650a78e59aaf6ae49b5120fb8b73e15.tar.gz dexon-sol-tools-21a193e51650a78e59aaf6ae49b5120fb8b73e15.tar.bz2 dexon-sol-tools-21a193e51650a78e59aaf6ae49b5120fb8b73e15.tar.lz dexon-sol-tools-21a193e51650a78e59aaf6ae49b5120fb8b73e15.tar.xz dexon-sol-tools-21a193e51650a78e59aaf6ae49b5120fb8b73e15.tar.zst dexon-sol-tools-21a193e51650a78e59aaf6ae49b5120fb8b73e15.zip |
feature(instant): add trust wallet detection
Diffstat (limited to 'packages/instant/src/util/env.ts')
-rw-r--r-- | packages/instant/src/util/env.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/instant/src/util/env.ts b/packages/instant/src/util/env.ts index 0fda0cc0e..0f0b472b2 100644 --- a/packages/instant/src/util/env.ts +++ b/packages/instant/src/util/env.ts @@ -44,6 +44,8 @@ export const envUtil = { getProviderType(provider: Provider): ProviderType | undefined { if (provider.constructor.name === 'EthereumProvider') { return ProviderType.Mist; + } else if (provider.constructor.name === 'TrustWeb3Provider') { + return ProviderType.TrustWallet; } else if ((provider as any).isParity) { return ProviderType.Parity; } else if ((provider as any).isMetaMask) { |