Skip to content

Instantly share code, notes, and snippets.

@TheBojda
Created August 7, 2017 08:52
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/eb4f4624947ac54ca97d806e5036a014 to your computer and use it in GitHub Desktop.
Save TheBojda/eb4f4624947ac54ca97d806e5036a014 to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.7;
contract SimpleStorage {
uint public storedData;
function SimpleStorage(uint initialValue) {
storedData = initialValue;
}
function set(uint x) {
storedData = 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