Skip to content

Commit

Permalink
class_hash -> contract_hash
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvsadana committed Oct 25, 2023
1 parent 60f4f05 commit b07ca5b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/hints/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,15 @@ pub fn prepare_constructor_execution(
ids_data,
ap_tracking,
)?;
insert_value_from_var_name("class_hash", tx.class_hash.unwrap_or(Felt252::from(0)), vm, ids_data, ap_tracking)?;
insert_value_from_var_name(
"class_hash",
// using `contract_hash` instead of `class_hash` as the that's how the
// input.json is structured
tx.contract_hash.expect("`contract_hash` must be present"),
vm,
ids_data,
ap_tracking,
)?;

let constructor_calldata_size = match &tx.constructor_calldata {
None => 0,
Expand Down

0 comments on commit b07ca5b

Please sign in to comment.