2017-02-10 00:38:02 +00:00
|
|
|
pragma solidity ^0.4.7;
|
|
|
|
contract SimpleStorage {
|
|
|
|
uint public storedData;
|
|
|
|
|
2017-04-02 18:12:12 +00:00
|
|
|
function() payable { }
|
|
|
|
|
2017-02-10 00:38:02 +00:00
|
|
|
function SimpleStorage(uint initialValue) {
|
|
|
|
storedData = initialValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
function set(uint x) {
|
|
|
|
storedData = x;
|
|
|
|
}
|
|
|
|
|
2017-07-16 16:10:17 +00:00
|
|
|
function set2(uint x, uint unusedGiveWarning) {
|
2017-07-15 15:35:29 +00:00
|
|
|
storedData = x;
|
|
|
|
}
|
|
|
|
|
2017-02-10 00:38:02 +00:00
|
|
|
function get() constant returns (uint retVal) {
|
|
|
|
return storedData;
|
|
|
|
}
|
|
|
|
|
2017-02-28 01:32:26 +00:00
|
|
|
function getS() constant returns (string d) {
|
|
|
|
return "hello";
|
|
|
|
}
|
|
|
|
|
2017-02-10 00:38:02 +00:00
|
|
|
}
|