this is the mint function of my contract and I want to pass the quantity argument, please help me with that. my current code :-
const { writeAsync: mint, error: mintError } = useContractWrite({ ...contractConfig, functionName: 'mint', });
and then Iam trying to add arguments this way :-
const tx = await mint({args: [{_quantity: 1}]});
Thanks in advance!