embark/demo/app/contracts/simple_storage.sol

16 lines
245 B
Solidity
Raw Normal View History

2015-05-24 09:07:19 -04:00
contract SimpleStorage {
2015-06-14 21:38:00 -04:00
uint public foo;
function SimpleStorage(uint y) {
foo = y;
}
2015-05-24 09:07:19 -04:00
uint storedData;
function set(uint x) {
storedData = x;
}
function get() constant returns (uint retVal) {
return storedData;
}
}