Use uint256
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user