embark/demo/contracts/simple_storage.sol
2018-01-11 09:29:42 -05:00

18 lines
305 B
Solidity

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