WalletConnectModal not recognising that metamask is installed #3538
Replies: 1 comment
-
I recently set everything up according to your documentation, and auto-detection Metamask/Coinbase extension was working, but now it isn't. Coinbase and MetaMask are being ignored in PC browser `import { Web3AuthNoModal } from "@web3auth/no-modal"; const commonChainConfig = { const WalletConnectProjectId = 'SECRET'; const privateKeyProvider = new EthereumPrivateKeyProvider({ config: { chainConfig: commonChainConfig } }); export const initWeb3Auth = async (): Promise => { const openloginAdapter = new OpenloginAdapter({ web3auth.configureAdapter(openloginAdapter); const walletConnectModal = new WalletConnectModal({ const defaultWcSettings = await getWalletConnectV2Settings(CHAIN_NAMESPACES.EIP155, [commonChainConfig.chainId], WalletConnectProjectId); const walletConnectV2Adapter = new WalletConnectV2Adapter({ await web3auth.init(); return web3auth; |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am building a WalletConnectModal functionality into my app. I want it to detect when my user has installed metamask or other wallets on desktop (in browser). This happens automatically when using the Web3Modal. This is what I want:
Here is my code for WalletConnectModal:
However I get this:
And when a user clicks on metamask, even if he has it installed in the browser the modal gives a QR code to scan with phone:
How can I make the WalletConnectModal detect metamask or other installed wallets on desktop?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions