embark/demo/app/contracts/simple_storage.sol

15 lines
262 B
Solidity
Raw Normal View History

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