Files
embark-create-react-dapp-te…/contracts/SimpleStorage.sol
T
emizzle ceaba14dcd feat: Add contract to template, support for latest embark
Add contract as part of the default template.

Add support for latest embark (embarkjs-ipfs, embarkjs-whisper).
2019-04-08 12:39:06 +10:00

18 lines
294 B
Solidity

pragma solidity ^0.5.0;
contract SimpleStorage {
uint public storedData;
constructor(uint initialValue) public {
storedData = initialValue;
}
function set(uint x) public {
storedData = x;
}
function get() public view returns (uint retVal) {
return storedData;
}
}