Created
June 21, 2019 17:47
-
-
Save thodges-gh/b29c48681ed68f559d57531937669b89 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.4.24; | |
// GetterSetter is a contract to aid debugging and testing during development. | |
contract GetterSetter { | |
bytes32 public getBytes32; | |
uint256 public getUint256; | |
int256 public getInt256; | |
event SetBytes32(address indexed from, bytes32 value); | |
event SetUint256(address indexed from, uint256 value); | |
event SetInt256(address indexed from, int256 value); | |
function setBytes32(bytes32 _value) public { | |
getBytes32 = _value; | |
emit SetBytes32(msg.sender, _value); | |
} | |
function setInt256(int256 _value) public { | |
getInt256 = _value; | |
emit SetInt256(msg.sender, _value); | |
} | |
function setUint256(uint256 _value) public { | |
getUint256 = _value; | |
emit SetUint256(msg.sender, _value); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment