My (in development) dapp works fine on pc but doesnt work on mobile #3319
-
Currently working on a dapp .... www.mintandwin.com (feel free to check but currently in development) I am using web3modal and as stated in title, the PC version works ok the mobile version wont work the walletconnectbutton : import React, { useEffect, useState } from 'react'; const chains = [arbitrum, mainnet, polygon, bscTestnet, avalanche]; const { publicClient } = configureChains(chains, [w3mProvider({ projectId })]); function Web3ConnectButton() { useEffect(() => { return ( export default Web3ConnectButton; i have the MintButton : function MintButton() {
} export default MintButton; and i have the ViewNfts Button : function NFTsButton() { useEffect(() => {
}, []); const checkWalletConnection = async () => { const fetchCollectionName = async () => {
}; const fetchOwnerTokenIds = async () => {
}; const fetchVideoUrl = async (tokenId) => {
}; const fetchNFTData = async () => {
}; useEffect(() => { return ( View Your NFTs
); export default NFTsButton; Everything works fine on the PC however on mobile the connected state doesnt seem to work ... because when i click on the mint ticket button the popupmessge that i implemented throws me the error to connect wallet 1st even tho i am already connected .... its the same for the view nfts button .... as i said on PC works fine only mobile version is faulty ... any help would be much appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, could you provide a minimal reproducible example of your issue? |
Beta Was this translation helpful? Give feedback.
Answering here, web3modal uses wagmi to interact with the blockchain, you can check their docs here
https://wagmi.sh/react/hooks/useContractWrite
We'll add support for web3.js and ethers Web3Modal v3