embark/test_app/app/contracts/simple_storage.sol

22 lines
361 B
Solidity
Raw Normal View History

2017-02-10 00:38:02 +00:00
pragma solidity ^0.4.7;
contract SimpleStorage {
uint public storedData;
function SimpleStorage(uint initialValue) {
storedData = initialValue;
}
function set(uint x) {
storedData = x;
}
function get() constant returns (uint retVal) {
return storedData;
}
function getS() constant returns (string d) {
return "hello";
}
2017-02-10 00:38:02 +00:00
}