embark/demo/app/contracts/simple_storage.sol
2016-10-22 18:04:45 -04:00

18 lines
288 B
Solidity

pragma solidity ^0.4.2;
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;
}
}