Skip to content

Instantly share code, notes, and snippets.

@johnsoncarl
Last active April 2, 2020 17:16
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 johnsoncarl/a8c1d896888c7696c8b361d375f03580 to your computer and use it in GitHub Desktop.
Save johnsoncarl/a8c1d896888c7696c8b361d375f03580 to your computer and use it in GitHub Desktop.
(01) of Day 15 blog of 20 days blog series
pragma solidity >=0.4.0 <0.7.0;
contract SimpleStorage {
uint storedData;
constructor() public{
storedData = 1;
}
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