Skip to content

Commit 59c285a

Browse files
cb-jakeAdamj1232
andauthored
1.37.0-0.0.4 : use window.ethereum provider if available (#777)
* coinbase wallet use window.ethereum vs. web3 * bump minor version Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>
1 parent a93590c commit 59c285a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modules/select/wallets/coinbase.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ function coinbase(options: CommonWalletOptions): WalletModule {
1313
wallet: async (helpers: Helpers) => {
1414
const { getProviderName, createLegacyProviderInterface } = helpers
1515
const provider =
16-
(window as any).web3 && (window as any).web3.currentProvider
16+
(window as any).ethereum ||
17+
((window as any).web3 && (window as any).web3.currentProvider)
1718

1819
return {
1920
provider,

0 commit comments

Comments
 (0)