Created
January 6, 2020 08:03
-
-
Save laalaguer/5d7dd6889e70e8784f4448f529dc8976 to your computer and use it in GitHub Desktop.
An example Solidity code for a small smart contract
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.5.11; | |
contract Hello { | |
uint public counter; | |
constructor () public { | |
counter = 0; | |
} | |
function increaseAmount () public { | |
counter = counter + 1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment