embark-area-51/demo/app/contracts/simple_storage.sol

16 lines
245 B
Solidity
Raw Normal View History

2015-05-24 13:07:19 +00:00
contract SimpleStorage {
2015-06-15 01:38:00 +00:00
uint public foo;
function SimpleStorage(uint y) {
foo = y;
}
2015-05-24 13:07:19 +00:00
uint storedData;
function set(uint x) {
storedData = x;
}
function get() constant returns (uint retVal) {
return storedData;
}
}