embark-area-51/templates/demo/contracts/simple_storage.sol
2018-09-14 18:50:46 -04:00

19 lines
296 B
Solidity

pragma solidity ^0.4.25;
contract SimpleStorage {
uint public storedData;
constructor(uint initialValue) public {
storedData = initialValue;
}
function set(uint x) public {
storedData = x;
}
function get() public view returns (uint retVal) {
return storedData;
}
}