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