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;
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|