Skip to content

Instantly share code, notes, and snippets.

@TheBojda
Created August 19, 2017 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheBojda/6a1b50e87c189427a26f8741d689b10d to your computer and use it in GitHub Desktop.
Save TheBojda/6a1b50e87c189427a26f8741d689b10d to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.7;
contract SimpleStorage {
uint public storedData;
event TestEvent(address from, uint value);
function SimpleStorage(uint initialValue) {
storedData = initialValue;
}
function set(uint x) {
storedData = x;
TestEvent(msg.sender, x);
}
function get() constant returns (uint retVal) {
return storedData;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment