Lesson10: how shall we transfer "Parameters" from "front" to solidity? #3045
Unanswered
PatricHenry
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@PatricHenry Above where you declared the runContractFunction; const {
runContractFunction: enterRaffle,
data: enterTxResponse,
isLoading,
isFetching,
} = useWeb3Contract({
abi: abi,
contractAddress: raffleAddress,
functionName: "enterRaffle",
msgValue: entranceFee,
params: {},
}) Here you will pass that in params as a key/value pair. |
Beta Was this translation helpful? Give feedback.
2 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.
-
take "enterRaffle" for example, I see its button code as below:
"enterRaffle" function get no parameter on "solidity", what if I want to transfer a number to solidity when I call "enterRaffle"; How shall I set on above code in this situation?
Beta Was this translation helpful? Give feedback.
All reactions