Skip to content

Commit e08880d

Browse files
committed
add ethereum namspace for provider check
1 parent 9dcb0ca commit e08880d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modules/select/wallets/trust.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ function trust(options: InjectedWithBalanceOptions): WalletModule {
1717
wallet: async (helpers: Helpers) => {
1818
const { getProviderName, getAddress, getNetwork, getBalance } = helpers
1919
const trustProvider =
20-
(window as any).web3 && (window as any).web3.currentProvider
20+
(window as any).ethereum ||
21+
((window as any).web3 && (window as any).web3.currentProvider)
2122

2223
const isTrust = getProviderName(trustProvider) === 'Trust'
2324
let createProvider

0 commit comments

Comments
 (0)