From b2d62a4a38cd44e61b8435991ae31733a9d8c4f4 Mon Sep 17 00:00:00 2001 From: querolita Date: Mon, 25 Nov 2024 16:47:25 +0100 Subject: [PATCH 1/2] fixed typo in rangeCheck16 error message --- src/lib/provable/gadgets/range-check.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/provable/gadgets/range-check.ts b/src/lib/provable/gadgets/range-check.ts index da661c5def..f65c90e4db 100644 --- a/src/lib/provable/gadgets/range-check.ts +++ b/src/lib/provable/gadgets/range-check.ts @@ -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; } From 240c96a76d4ac0dab14530cb6265db2e1fb68c41 Mon Sep 17 00:00:00 2001 From: querolita Date: Mon, 25 Nov 2024 16:59:01 +0100 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index da97589a32..48876c95f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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