2015-05-24 09:07:19 -04:00
|
|
|
contract SimpleStorage {
|
2015-06-20 08:36:40 -04:00
|
|
|
uint public storedData;
|
2015-06-14 21:38:00 -04:00
|
|
|
|
2015-06-20 08:36:40 -04:00
|
|
|
function SimpleStorage(uint initialValue) {
|
|
|
|
storedData = initialValue;
|
2015-06-14 21:38:00 -04:00
|
|
|
}
|
|
|
|
|
2015-05-24 09:07:19 -04:00
|
|
|
function set(uint x) {
|
2016-08-17 20:29:41 -04:00
|
|
|
//for (uint same3=0; same3 < 3; same3++) {
|
|
|
|
// storedData = same3;
|
|
|
|
//}
|
|
|
|
storedData = x;
|
2015-05-24 09:07:19 -04:00
|
|
|
}
|
2016-08-17 20:29:41 -04:00
|
|
|
|
2015-05-24 09:07:19 -04:00
|
|
|
function get() constant returns (uint retVal) {
|
|
|
|
return storedData;
|
|
|
|
}
|
2016-08-14 08:04:34 -04:00
|
|
|
|
2015-05-24 09:07:19 -04:00
|
|
|
}
|