I am trying to mint on my Fuji testnet contract. When invoking the mint function I keep getting “execution reverted:insufficient funds”. I assume I have to add a line for the 1avax mint amount somewhere in the params?
I added msgValue: Moralis.Units.ETH(1)
to params but that didn’t work either. My code is as below:
const { data: mintData, error: mintError, fetch: mintFetch, isFetching: mintFetching, isLoading: mintLoading } = useWeb3ExecuteFunction({
abi: spotNFTAbiFuji,
contractAddress: spotNFTContractFuji,
functionName: "mint",
params: {
bg: props.chosenTrait.BackgroundID,
body: props.chosenTrait.BodyID,
head: props.chosenTrait.HeadID,
eyes: props.chosenTrait.EyesID,
mouth: props.chosenTrait.MouthID,
headwear: props.chosenTrait.HeadwearID,
},
});
Please advice. I didn’t find anything in the docs regarding setting value for sending amoutn to mint function.