Last active
May 5, 2023 08:02
-
-
Save TehilaFavourite/b063f9419191fdc9397bdba80f51620c 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 MyContract { | |
uint public myNumber; | |
function setNumber(uint _number) public { | |
myNumber = _number; | |
} | |
} |
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 Function { | |
function add (uint _a, uint _b) external pure returns(uint) { | |
return _a + _b; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment