Created
April 23, 2018 03:36
-
-
Save toanalien/a02874d44a41d6db058cfdfe9b96dbde to your computer and use it in GitHub Desktop.
This file contains hidden or 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; | |
| contract Counter { | |
| int private count = 0; | |
| function incrementCounter() public { | |
| count += 1; | |
| } | |
| function decrementCounter() public { | |
| count -= 1; | |
| } | |
| function getCount() public constant returns (int) { | |
| return count; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment