Skip to content

Commit

Permalink
Fix range_check96 builtin selector. (#5951)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyalesokhin-starkware committed Jul 3, 2024
1 parent a454b32 commit f1458c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions crates/cairo-lang-starknet-classes/src/casm_contract_class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,9 @@ impl CasmContractClass {

let builtins = builtins
.iter()
.map(|type_id| {
type_resolver.get_generic_id(type_id).0.as_str().to_case(Case::Snake)
.map(|type_id| match type_resolver.get_generic_id(type_id).0.as_str() {
"RangeCheck96" => "range_check96".to_string(),
name => name.to_case(Case::Snake),
})
.collect_vec();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4005,7 +4005,7 @@
"offset": 0,
"builtins": [
"range_check",
"range_check_96",
"range_check96",
"add_mod",
"mul_mod"
]
Expand Down

0 comments on commit f1458c8

Please sign in to comment.