Use uint256

This commit is contained in:
2026-02-18 01:07:08 +01:00
parent 9ab5e3b873
commit 219b669ad8
2 changed files with 11 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ contract Counter {
x++;
}
function incBy(uint by) public {
function incBy(uint256 by) public {
require(by > 0, "incBy: increment should be positive");
x += by;
}