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": []
}
}}
Submitted on: 2025-11-01 12:16:23
Comments
Log in to comment.
No comments yet.