Skip to content

Instantly share code, notes, and snippets.

@dagi3d
Created February 9, 2015 19:28
Show Gist options
  • Save dagi3d/f880977a032753f44abf to your computer and use it in GitHub Desktop.
Save dagi3d/f880977a032753f44abf to your computer and use it in GitHub Desktop.
contract SimpleStorage {
uint storedData;
function SimpleStorage() {
storedData = 10;
}
function subtract() returns (uint retVal) {
storedData -= 1;
return storedData;
}
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