Skip to content

Commit 57a2ed2

Browse files
fix: ArcTooBig parameter order in assert_le_felt (#2234)
* Fix ArcTooBig parameter order in assert_le_felt * add changelog --------- Co-authored-by: Julian Gonzalez Calderon <[email protected]>
1 parent a87fba2 commit 57a2ed2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#### Upcoming Changes
44

5+
* fix: ArcTooBig parameter order in assert_le_felt. [#2234](https://github.com/lambdaclass/cairo-vm/pull/2234)
6+
57
* chore: Bump Rust toolchain to 1.89 [#2245](https://github.com/lambdaclass/cairo-vm/pull/2245)
68

79
* chore: Remove dead SegmentInfo struct from cairo_runner.rs [#2235](https://github.com/lambdaclass/cairo-vm/pull/2235)

vm/src/hint_processor/builtin_hint_processor/math_utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ pub fn assert_le_felt(
124124
if lengths_and_indices[0].0 > &prime_div3 || lengths_and_indices[1].0 > &prime_div2 {
125125
return Err(HintError::ArcTooBig(Box::new((
126126
Felt252::from(&lengths_and_indices[0].0.clone()),
127-
Felt252::from(&prime_div2),
128-
Felt252::from(&lengths_and_indices[1].0.clone()),
129127
Felt252::from(&prime_div3),
128+
Felt252::from(&lengths_and_indices[1].0.clone()),
129+
Felt252::from(&prime_div2),
130130
))));
131131
}
132132

0 commit comments

Comments
 (0)