Sending eth with write function, not working? #340
Answered
by
YannikSood
YannikSood
asked this question in
Q&A
-
Hey, I am trying to send ETH to a write function in my contract.
The expected behavior is that the function "entry" is called with the arguments and requires 0.01 E sent to work. But after adding overrides, it is just transferring the ETH to the contract address and not calling the function. Before adding the overrides, it was working fine. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
YannikSood
Apr 14, 2022
Replies: 1 comment
-
Adding the useSigner and useContract hooks to the file fixed the issue
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
YannikSood
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adding the useSigner and useContract hooks to the file fixed the issue