Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

// SPDX-License-Identifier: MIT pragma solidity ^0.8.20;

contract Counter { uint256 public count;

function increment() public {
    count += 1;
}

function decrement() public {
    require(count > 0, "Count cannot be negative");
    count -= 1;
}

}

About

Solidity smart contract learning practice

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors