mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-14 17:24:58 +00:00
20 lines
347 B
Solidity
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;
|
|
}
|
|
|
|
}
|