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": {
    "contracts/Counter.sol": {
      "content": "/**
 *Submitted for verification at Etherscan.io on 2022-12-15
 */

// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

contract Counter {
    uint public count;

    // Function to get the current count
    function get() public view returns (uint) {
        return count;
    }

    // Function to increment count by 1
    function inc() public {
        count += 1;
    }

    // Function to decrement count by 1
    function dec() public {
        // This function will fail if count = 0
        count -= 1;
    }
}"
    }
  },
  "settings": {
    "evmVersion": "paris",
    "optimizer": {
      "enabled": false,
      "runs": 200
    },
    "outputSelection": {
      "*": {
        "*": [
          "evm.bytecode",
          "evm.deployedBytecode",
          "devdoc",
          "userdoc",
          "metadata",
          "abi"
        ]
      }
    }
  }
}}

Tags:
Factory|addr:0x90c58298c29c324bbe3b41a9660a44ec4d44d9df|verified:true|block:23711725|tx:0xe7ec477c1e2d54553fcc98739a0b7e421f81fd715f9e902e2c8754025d7c96da|first_check:1762091119

Submitted on: 2025-11-02 14:45:21

Comments

Log in to comment.

No comments yet.