Created
May 5, 2023 16:01
-
-
Save TehilaFavourite/d7adf3f4e5f28b0d3d7ee45144ac75ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.8.0; | |
contract FunctionVisibility { | |
uint256 public myNumber; | |
function setMyNumber(uint256 _number) public { | |
myNumber = _number; | |
} | |
function getMyNumber() external view returns (uint256) { | |
return myNumber; | |
} | |
function _doSomething() internal pure { | |
// do something | |
} | |
function _doSomethingElse() private pure { | |
// do something else | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment