Skip to content

Commit 7ec9297

Browse files
committed
use hard assertion for uint32/112/224 check
1 parent 17fb8a3 commit 7ec9297

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/library/src/math/UInt112.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class UInt112 extends UInt<112> {
1919
};
2020

2121
public static check(x: { value: Field }) {
22-
UInt.assertionFunction(Gadgets.isDefinitelyInRangeN(112, x.value));
22+
Gadgets.isDefinitelyInRangeN(112, x.value).assertTrue();
2323
}
2424

2525
public static from(x: UInt112 | bigint | number | string): UInt112 {

packages/library/src/math/UInt224.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class UInt224 extends UInt<224> {
1818
};
1919

2020
public static check(x: { value: Field }) {
21-
UInt.assertionFunction(Gadgets.isDefinitelyInRangeN(224, x.value));
21+
Gadgets.isDefinitelyInRangeN(224, x.value).assertTrue();
2222
}
2323

2424
public static from(x: UInt<224> | bigint | number | string): UInt224 {

packages/library/src/math/UInt32.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class UInt32 extends UInt<32> {
1919
};
2020

2121
public static check(x: { value: Field }) {
22-
UInt.assertionFunction(Gadgets.isDefinitelyInRangeN(32, x.value));
22+
Gadgets.isDefinitelyInRangeN(32, x.value).assertTrue();
2323
}
2424

2525
public static from(x: UInt32 | bigint | number | string) {

0 commit comments

Comments
 (0)