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

17 lines
264 B
Solidity
Raw Normal View History

2015-05-24 13:07:19 +00:00
contract SimpleStorage {
2015-06-20 12:36:40 +00:00
uint public storedData;
2015-06-15 01:38:00 +00:00
2016-10-02 23:13:46 +00:00
function SimpleStorage(uint initialValue) {
2015-06-20 12:36:40 +00:00
storedData = initialValue;
2015-06-15 01:38:00 +00:00
}
2015-05-24 13:07:19 +00:00
function set(uint x) {
2016-08-18 00:29:41 +00:00
storedData = x;
2015-05-24 13:07:19 +00:00
}
2016-08-18 00:29:41 +00:00
2015-05-24 13:07:19 +00:00
function get() constant returns (uint retVal) {
return storedData;
}
2016-08-14 12:04:34 +00:00
2015-05-24 13:07:19 +00:00
}