We cannot use private function outside of the contract. If I define any private function then use it in the public function which is in the same contract with private function. Can I call this public function outside of the contract ? Public function can be called from outside of the contract, but it has private function call in it.


1 Answer 1


Yes, it's a common practice in Solidity.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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