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

28 lines
462 B
Solidity
Raw Normal View History

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 set2(uint x, uint unusedGiveWarning) {
storedData = x;
}
2017-02-10 00:38:02 +00:00
function get() constant returns (uint retVal) {
return storedData;
}
function getS() constant returns (string d) {
return "hello";
}
2017-02-10 00:38:02 +00:00
}