| Summary: | Weight 0 is considered as valid input | ||
|---|---|---|---|
| Product: | Group31Bullship | Reporter: | Dennis Lai <cslai26-c> |
| Component: | Transaction | Assignee: | Dennis Lai <cslai26-c> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | tnchan27-c |
| Priority: | --- | ||
| Version: | Demo 1.0 | ||
| Hardware: | PC | ||
| OS: | Windows | ||
|
Description
Dennis Lai
2021-11-20 18:59:06 HKT
This problem is caused by the checking of the weightValid function in the transactionBuilder class, which did not handle the case that returning false when weight equals 0. This is fixed by setting <0 to <=0 while checking for weight. |