Use uint256
This commit is contained in:
10
README.md
10
README.md
@@ -14,6 +14,16 @@ This example project includes:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
To install dependencies, run:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
npm install
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
To build, run:
|
To build, run:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ contract Counter {
|
|||||||
x++;
|
x++;
|
||||||
}
|
}
|
||||||
|
|
||||||
function incBy(uint by) public {
|
function incBy(uint256 by) public {
|
||||||
require(by > 0, "incBy: increment should be positive");
|
require(by > 0, "incBy: increment should be positive");
|
||||||
x += by;
|
x += by;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user