Skip to content

Commit d193014

Browse files
authored
Merge pull request #421 from blocknative/fix/trust-provider
Fix: Trust Provider Closes #420
2 parents 9dcb0ca + e08880d commit d193014

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)