Created
March 2, 2021 11:45
-
-
Save PatrickAlphaC/77712e006fbcbb4a138e6710b225e82e to your computer and use it in GitHub Desktop.
Simpler counter contract. Deploy with: https://remix.ethereum.org/#version=soljson-v0.6.7+commit.b8d736ae.js&optimize=false&evmVersion=null&gist=77712e006fbcbb4a138e6710b225e82e&runs=200
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.6.7; | |
| contract Counter { | |
| uint256 public count; | |
| constructor() public { | |
| count = 0; | |
| } | |
| function increment(uint256 increment_increase) public { | |
| count = count + increment_increase; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment