Skip to content

Commit 3a88203

Browse files
authored
chore: XDEFI strict provider [3.0.6] (#606)
* chore: XDEFI strict provider * chore(lint): fix
1 parent 8cbaf88 commit 3a88203

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/modules/select/wallets/xdefi.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ function xdefi(options: CommonWalletOptions): WalletModule {
1919
createLegacyProviderInterface
2020
} = helpers
2121

22-
const provider =
23-
(window as any).ethereum ||
24-
((window as any).web3 && (window as any).web3.currentProvider)
22+
const provider = (window as any).xfi && (window as any).xfi.ethereum
2523

2624
return {
2725
provider,

0 commit comments

Comments
 (0)