Skip to content

Instantly share code, notes, and snippets.

@jorgedison
Created February 21, 2020 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorgedison/ac9e413a1f67fdf9e736a604f02b0f57 to your computer and use it in GitHub Desktop.
Save jorgedison/ac9e413a1f67fdf9e736a604f02b0f57 to your computer and use it in GitHub Desktop.
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