This commit is contained in:
2026-10-20 10:48:13 +02:00
parent 5d32f0a3da
commit d2171d3f69
18 changed files with 3706 additions and 7 deletions

View File

@@ -0,0 +1,19 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.34;
contract Counter {
uint public x;
event Increment(uint by);
function inc() public {
x++;
emit Increment(1);
}
function incBy(uint by) public {
require(by > 0, "incBy: increment should be positive");
x += by;
emit Increment(by);
}
}