FISCO-BCOS / FISCO-BCOS/SCStudio
number can be overflow when use operator "++"
Open
enhancement
- Dominant language
- Python
- Stars
- 23
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
in the following contract, the field "number" can be overflow to 0 when use function setnumber. And in the report, it doesn't find this issue
```
contract HelloWorld {
string name;
uint8 number;
constructor() public {
name = "Hello, World!";
}
function get() public view returns (string memory) {
return name;
}
function set(string memory n) public {
name = n;
}
function setnumber() public {
number++;
}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.