mirror of https://github.com/embarklabs/embark.git
18 lines
295 B
Solidity
18 lines
295 B
Solidity
|
pragma solidity ^0.4.23;
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
}
|