2017-01-07 02:48:38 +00:00
|
|
|
pragma solidity ^0.4.7;
|
2018-09-05 16:38:42 +00:00
|
|
|
|
2016-10-15 19:54:19 +00:00
|
|
|
contract SimpleStorage {
|
|
|
|
uint public storedData;
|
|
|
|
|
2018-09-05 16:38:42 +00:00
|
|
|
constructor(uint initialValue) public {
|
2016-10-15 19:54:19 +00:00
|
|
|
storedData = initialValue;
|
|
|
|
}
|
|
|
|
|
2018-09-05 16:38:42 +00:00
|
|
|
function set(uint x) public {
|
2016-10-15 19:54:19 +00:00
|
|
|
storedData = x;
|
|
|
|
}
|
|
|
|
|
2018-09-05 16:38:42 +00:00
|
|
|
function get() public view returns (uint retVal) {
|
2016-10-15 19:54:19 +00:00
|
|
|
return storedData;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|