embark-area-51/demo/app/contracts/simple_storage.sol
2016-10-06 07:40:20 -04:00

20 lines
347 B
Solidity

contract SimpleStorage {
uint public storedData;
function SimpleStorage(uint initialValue) {
storedData = initialValue;
}
function set(uint x) {
//for (uint same3=0; same3 < 3; same3++) {
// storedData = same3;
//}
storedData = x;
}
function get() constant returns (uint retVal) {
return storedData;
}
}