Hello, when I try minting a ERC721 token (very similar to how its done in Rarible clone tutorial) I get the following error.
Error: Returned error: VM Exception while processing transaction: out of gas
It tried adding the gas limit to the ‘mintToken’ function such as
await window.tokenContract.methods.createItem(uri).send({from: window.ethereum.selectedAddress, gas: 1000000});
^This works and the token is minted, However it never asks for the user to sign the signature in metamask. It just mints it without the metamask sign dropdown ever appearing.
Not sure what the issue is. I am calling the the mint token within a call back (after axios post request returns, also this is in React).