Last active
April 2, 2020 17:16
-
-
Save johnsoncarl/a8c1d896888c7696c8b361d375f03580 to your computer and use it in GitHub Desktop.
(01) of Day 15 blog of 20 days blog series
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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