Skip to content

Instantly share code, notes, and snippets.

@thodges-gh
Created June 21, 2019 17:47
Show Gist options
  • Save thodges-gh/b29c48681ed68f559d57531937669b89 to your computer and use it in GitHub Desktop.
Save thodges-gh/b29c48681ed68f559d57531937669b89 to your computer and use it in GitHub Desktop.
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