I am trying to have my website interact with my NFT contract. This code works perfect on PC with no problems. When I try it on the mobile MetaMask App through the browser, it gets stuck when it is called to initiate the transaction. Code below:
const provider = new ethers.providers.Web3Provider(window.ethereum);
const signer = provider.getSigner();
const nftContract = new ethers.Contract(contractAddress, abi, signer);
let nftTxn = await nftContract.mintNoMerkle(1, {value: ethers.utils.parseEther("0.001")});
The web application never finishes the “await nftContract…” and is stuck there without a transaction being initiated. I don’t know how to proceed.