embark-area-51/test_app/app/contracts/simple_storage.sol

28 lines
462 B
Solidity

pragma solidity ^0.4.7;
contract SimpleStorage {
uint public storedData;
function() payable { }
function SimpleStorage(uint initialValue) {
storedData = initialValue;
}
function set(uint x) {
storedData = x;
}
function set2(uint x, uint unusedGiveWarning) {
storedData = x;
}
function get() constant returns (uint retVal) {
return storedData;
}
function getS() constant returns (string d) {
return "hello";
}
}