0

I am aware of the payable annotation on the public methods. But just want to make things more clear:

  1. is every public function payable? Even without the payable annotation?

  2. what would happen if a private function is annotated as payable?

1
  1. is every public function payable? Even without the payable annotation?

No.

  1. what would happen if a private function is annotated as payable?

You would get a syntax error from the compiler.

|improve this answer|||||
  • thanks for the quick response. – lllllllllllll Jun 5 '19 at 15:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.