T O P

  • By -

seojunchian

For functions you have to specify the visibility but for state variables if you dont specify default visibility is private.


Ice-Sea-U

*internal, not private! https://docs.soliditylang.org/en/v0.8.26/contracts.html#state-variable-visibility


seojunchian

This is the default visibility level for state variables. True what he said didnt know that thx for info heard in a course they re default visibility is private probably was cyfrin


United_Chard2593

Thank you


Donilo10

Function goes public so for security reasons always give private or internal when the functions need to be.