From 2effc3e267f01e620c50622138d98381883d4c32 Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Thu, 20 Dec 2018 14:10:29 -0800 Subject: fix(instant): use isTrust property to determine if provider is trust wallet --- packages/instant/src/util/env.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/instant/src/util/env.ts') 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; -- cgit v1.2.3