Created
August 12, 2023 12:15
-
-
Save AbhinavXT/1ffd74bdfe22e76cc8bff59d8bbe1db5 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; | |
function setNumber(uint256 newNumber) public { | |
number = newNumber; | |
} | |
function increment() public { | |
number++; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment