embark/test_app/app/contracts/simple_storage.sol

18 lines
288 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;
}
}