Questions tagged [visibility]

Questions regarding the types of visibility for function and state variables (external, internal, public, private, etc.)

Filter by
Sorted by
Tagged with
4 votes
3 answers
2k views

Accessing not public variables

Is it possible as the creater of the smart contract to access a not public variable? E.g.: contract MyContract { uint256 someLevel; function changeLevel(uint _newLevel) public { ...
sunwarr10r's user avatar
8 votes
2 answers
15k views

What are private variables in solidity?

The following variables here, assuming solidity 4.24 or later. mapping(something => something) private yourmapping; bool private yourbool; address private youraddress; uint256 private ...
Fifth Dimension Dragon's user avatar