Last active
August 12, 2023 12:17
-
-
Save AbhinavXT/3959550ffbb59143d058a65c8ba3c86e to your computer and use it in GitHub Desktop.
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
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity ^0.8.13; | |
contract Counter { | |
uint256 public number; | |
uint256 public myNumber = 42; | |
function setNumber(uint256 newNumber) public { | |
number = newNumber; | |
} | |
function increment() public { | |
number++; | |
} | |
function decrement() public { | |
myNumber--; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment