embark-area-51/demo/app/contracts/simple_storage.sol
2015-06-15 06:26:38 -04:00

16 lines
245 B
Solidity

contract SimpleStorage {
uint public foo;
function SimpleStorage(uint y) {
foo = y;
}
uint storedData;
function set(uint x) {
storedData = x;
}
function get() constant returns (uint retVal) {
return storedData;
}
}