We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4ead9d commit 0cf0fd2Copy full SHA for 0cf0fd2
1 file changed
libs/wallet/src/wagmi/config.ts
@@ -1,5 +1,5 @@
1
import { RPC_URLS, VIEM_CHAINS } from '@cowprotocol/common-const'
2
-import { getCurrentChainIdFromUrl } from '@cowprotocol/common-utils'
+import { getCurrentChainIdFromUrl, isMobile } from '@cowprotocol/common-utils'
3
import { EvmChains, isEvmChain } from '@cowprotocol/cow-sdk'
4
5
import { createAppKit } from '@reown/appkit/react'
@@ -122,6 +122,8 @@ const reownAppKit = createAppKit({
122
*/
123
if (getIsSafeAppIframe()) {
124
connectWalletById(SAFE_CONNECTOR_ID, 'safe')
125
+} else if (isMobile && window.ethereum) {
126
+ connectWalletById('injected', 'injected')
127
}
128
129
bindActiveProvider(wagmiAdapter)
0 commit comments