mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-20 19:18:06 +00:00
22 lines
399 B
Solidity
22 lines
399 B
Solidity
contract SimpleStorage {
|
|
uint public storedData;
|
|
address public foo;
|
|
|
|
function SimpleStorage(uint initialValue, address addr) {
|
|
storedData = initialValue;
|
|
foo = addr;
|
|
}
|
|
|
|
function set(uint x) {
|
|
//for (uint same3=0; same3 < 3; same3++) {
|
|
// storedData = same3;
|
|
//}
|
|
storedData = x;
|
|
}
|
|
|
|
function get() constant returns (uint retVal) {
|
|
return storedData;
|
|
}
|
|
|
|
}
|