Skip to content

Instantly share code, notes, and snippets.

@jin10086
Created May 11, 2018 02:19
Show Gist options
  • Save jin10086/4b52f2176b2e86f7be09786741291bf0 to your computer and use it in GitHub Desktop.
Save jin10086/4b52f2176b2e86f7be09786741291bf0 to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.23+commit.124ca40d.js&optimize=true&gist=
pragma solidity ^0.4.23;
contract Storage {
uint8 data;
function set(uint8 x) public {
data = x;
}
function get() public view returns(uint8) {
return data;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment