2016-10-22 22:04:45 +00:00
|
|
|
pragma solidity ^0.4.2;
|
2016-10-15 19:54:19 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|