Hello everyone!
I have created a simple dapp that mints an NFT for 0.01 ETH. Everything runs fine however while testing on both local and rinkeby networks, I am getting a high gas fee estimate when attempting to mint an NFT. The contract I have deployed to rinkeby is 0xc9cB8bD6bBCe97db0402A96CB54E81456DD641e8 .
The code interacting with the contract is below.
const { runContractFunction: mintNft, isFetching } = useWeb3Contract({
abi: nftAbi,
contractAddress: nftContractAddress,
functionName: "mintNft",
msgValue: value,
});
I can mint from the contract with expected feeβs paying about 0.01021973 RinkebyETH for transaction and mint instantly.
However, when I click mint from my application I get this high gas fee estimate.
And if I do proceed, rinkeby still takes a while to pick up my transaction.
Have I implemented useWeb3Contract correctly? or is there an issue with my contract.
Just trying to figure out what may be causing this issue, as I would like to deploy to mainnet and not have users pay unncesssary gas. Thank you!