Skip to content

Commit

Permalink
Merge pull request #1920 from o1-labs/typos/range-check-16
Browse files Browse the repository at this point in the history
[easy] Fix typo in rangeCheck16 error message
  • Loading branch information
querolita authored Nov 27, 2024
2 parents 7476d6c + c5c7e69 commit 37ae603
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

- Compiling stuck in the browser for recursive zkprograms https://github.com/o1-labs/o1js/pull/1906

- Error message in `rangeCheck16` gadget https://github.com/o1-labs/o1js/pull/1920

## [2.1.0](https://github.com/o1-labs/o1js/compare/b04520d...e1bac02) - 2024-11-13

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/lib/provable/gadgets/range-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ function rangeCheck16(x: Field) {
if (x.isConstant()) {
assert(
x.toBigInt() < 1n << 16n,
`rangeCheck16: expected field to fit in 8 bits, got ${x}`
`rangeCheck16: expected field to fit in 16 bits, got ${x}`
);
return;
}
Expand Down

0 comments on commit 37ae603

Please sign in to comment.