Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Ethereum Smart Contract Basic
pragma solidity >=0.4.0 <0.7.0;
contract SimpleStorage {
uint storedData;
function set(uint x) public {
storedData = x;
function get() public view returns (uint) {
return storedData;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment