Verified contractPartialMIT
Counter
Address0x9bf5d74103714564003f7f175c87bbe2a2157eca
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.4
- Same code
Only this contract
Details
- Compiler
- solc 0.8.4+commit.c7e474f2
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 12,612,452
- Creation transaction
- 0x9beaebe2be…01ca8c1fbe
Counter.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
contract Counter {
uint256 public counter = 0;
function add() external {
counter++;
}
function sub() external {
if (counter > 0) {
counter--;
}
}
}Compiler settingsShow
{
"optimizer": {
"runs": 0,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.