mirror of
https://github.com/tappollo/quorum-examples.git
synced 2026-01-12 17:03:08 +08:00
18 lines
279 B
Solidity
18 lines
279 B
Solidity
pragma solidity ^0.4.15;
|
|
|
|
contract simplestorage {
|
|
uint public storedData;
|
|
|
|
function simplestorage(uint initVal) {
|
|
storedData = initVal;
|
|
}
|
|
|
|
function set(uint x) {
|
|
storedData = x;
|
|
}
|
|
|
|
function get() constant returns (uint retVal) {
|
|
return storedData;
|
|
}
|
|
}
|