embark/demo/app/contracts/simple_storage.sol
2015-06-20 08:36:40 -04:00

15 lines
262 B
Solidity

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