Skip to content

Instantly share code, notes, and snippets.

@AbhinavXT
Last active August 12, 2023 12:17
Show Gist options
  • Save AbhinavXT/3959550ffbb59143d058a65c8ba3c86e to your computer and use it in GitHub Desktop.
Save AbhinavXT/3959550ffbb59143d058a65c8ba3c86e to your computer and use it in GitHub Desktop.
// 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