Replies: 1 comment
-
You need to add payable keyword to the function to make the function payable. As the error suggests, only payable functions can use msg.value function fund() public payable // add the payable keyword here |
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
-
I have this error:
can anyone help me ?
Beta Was this translation helpful? Give feedback.
All reactions