embark/test/contracts/simple_storage.sol

19 lines
289 B
Solidity
Raw Normal View History

2017-01-07 02:48:38 +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;
}
}