We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fea9368 commit 055ed25Copy full SHA for 055ed25
src/utils/cairoDataTypes/uint256.ts
@@ -140,9 +140,11 @@ export class CairoUint256 {
140
*/
141
static fromCalldata(calldata: [string, string]): CairoUint256 {
142
if (calldata.length !== 2) {
143
- throw new Error("Calldata must contain exactly two elements for low and high parts of uint256.");
+ throw new Error(
144
+ 'Calldata must contain exactly two elements for low and high parts of uint256.'
145
+ );
146
}
-
147
+
148
// Validate each part to ensure they are within the acceptable range.
149
const [low, high] = calldata;
150
const validatedLow = CairoUint256.validateProps(low, UINT_256_LOW_MIN.toString());
0 commit comments