How to correctly pass arguments for useContractWrite()? #878
Unanswered
NishantPacharne
asked this question in
Q&A
Replies: 1 comment
-
|
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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!
Beta Was this translation helpful? Give feedback.
All reactions