Description:
Smart contract deployed on Ethereum.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract ForeverIncreasedCounter {
uint256 private count;
event CounterIncreased(uint256 newCount, address increasedBy);
constructor() {
count = 0;
}
function increment() public {
count += 1;
emit CounterIncreased(count, msg.sender);
}
function getCount() public view returns (uint256) {
return count;
}
}
Submitted on: 2025-10-14 09:19:17
Comments
Log in to comment.
No comments yet.