embark-area-51/test/contracts/simple_storage.sol

20 lines
296 B
Solidity
Raw Normal View History

2017-01-07 02:48:38 +00:00
pragma solidity ^0.4.7;
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;
}
}