Skip to content

Instantly share code, notes, and snippets.

@atomrigs
Created March 16, 2017 17:53
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atomrigs/7c633570496b79623bed5d1286f93f3a to your computer and use it in GitHub Desktop.
Save atomrigs/7c633570496b79623bed5d1286f93f3a to your computer and use it in GitHub Desktop.
SimpleStorage
pragma solidity ^0.4.0;
contract SimpleStorage {
uint storedData;
function set(uint x) {
storedData = x;
}
function get() constant returns (uint) {
return storedData;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment