Questions tagged [visibility]
Questions regarding the types of visibility for function and state variables (external, internal, public, private, etc.)
2
questions
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 {
...
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 ...