Skip to content

Commit

Permalink
Update types/row_proof.go
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id authored Jun 4, 2024
1 parent b6c1b7a commit 1e009af
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion types/row_proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ func (rp RowProof) Validate() error {
if rp.EndRow < rp.StartRow {
return fmt.Errorf("end row %d cannot be smaller than start row %d", rp.EndRow, rp.StartRow)
}
// HACKHACK performing subtraction with unsigned integers is unsafe.
if int(rp.EndRow-rp.StartRow+1) != len(rp.RowRoots) {
return fmt.Errorf("the number of rows %d must equal the number of row roots %d", int(rp.EndRow-rp.StartRow+1), len(rp.RowRoots))
}
Expand Down

0 comments on commit 1e009af

Please sign in to comment.