Counter

Description:

Smart contract deployed on Ethereum with Factory features.

Blockchain: Ethereum

Source Code: View Code On The Blockchain

Solidity Source Code:

{{
  "language": "Solidity",
  "sources": {
    "Count.sol": {
      "content": "// SPDX-License-Identifier: MIT\r
pragma solidity ^0.8.26;\r
contract Counter {\r
    uint256 public count;\r
    function increment() public {\r
        count += 1;\r
    }\r
    function decrement() public {\r
        require(count > 0, "Count cannot be negative.");\r
        count -= 1;\r
    }\r
    function getCount() public view returns (uint256) {\r
        return count;\r
    }\r
}"
    }
  },
  "settings": {
    "optimizer": {
      "enabled": false,
      "runs": 200
    },
    "outputSelection": {
      "*": {
        "*": [
          "evm.bytecode",
          "evm.deployedBytecode",
          "devdoc",
          "userdoc",
          "metadata",
          "abi"
        ]
      }
    },
    "remappings": []
  }
}}

Tags:
Factory|addr:0x230d693c5e1fe3a7a3c4bedd7eb013189f072d1a|verified:true|block:23702152|tx:0xe7a60c84609b4795fc5f0768fd00c4eca197c96890c15ad51102b0865b3eb368|first_check:1761995783

Submitted on: 2025-11-01 12:16:23

Comments

Log in to comment.

No comments yet.