Last active
June 17, 2020 01:53
-
-
Save ayeteng/48bc63d5b7500f94901389b888912a7b 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.5.17; | |
contract StoreVar { | |
uint8 public _myVar; | |
event MyEvent(uint indexed _var); | |
function setVar(uint8 _var) public { | |
_myVar = _var; | |
emit MyEvent(_var); | |
} | |
function getVar() public view returns (uint8) { | |
return _myVar; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment