ETH Price: $2,138.37 (+4.21%)

Contract Diff Checker

Contract Name:
Counter

Contract Source Code:

File 1 of 1 : Counter

// SPDX-License-Identifier: MIT
pragma solidity >=0.5.17;

contract Counter {

    // Public variable of type unsigned int to keep the number of counts
    uint256 public count = 0;

    // Function that increments our counter
    function increment() public {
        count += 1;
    }

    // Not necessary getter to get the count value
    function getCount() public view returns (uint256) {
        return count;
    }

}

Please enter a contract address above to load the contract details and source code.

Context size (optional):