Skip to content

Instantly share code, notes, and snippets.

@frankhillard
Created November 22, 2019 17:13
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 frankhillard/f12fd7b14989336b84438e64469912dd to your computer and use it in GitHub Desktop.
Save frankhillard/f12fd7b14989336b84438e64469912dd to your computer and use it in GitHub Desktop.
snippet code in solidity
contract Counter {
int private counter;
constructor() public {
counter = 0;
}
function increaseCounterBy(int value) external {
counter = counter - value;
}
function decreaseCounterBy(int value) external {
counter = counter - value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment