2015-05-24 13:07:19 +00:00
|
|
|
contract SimpleStorage {
|
2015-06-20 12:36:40 +00:00
|
|
|
uint public storedData;
|
2015-06-15 01:38:00 +00:00
|
|
|
|
2015-06-20 12:36:40 +00:00
|
|
|
function SimpleStorage(uint initialValue) {
|
|
|
|
storedData = initialValue;
|
2015-06-15 01:38:00 +00:00
|
|
|
}
|
|
|
|
|
2015-05-24 13:07:19 +00:00
|
|
|
function set(uint x) {
|
|
|
|
storedData = x;
|
|
|
|
}
|
|
|
|
function get() constant returns (uint retVal) {
|
|
|
|
return storedData;
|
|
|
|
}
|
|
|
|
}
|