diff --git a/crates/starknet-os/src/hints/execution.rs b/crates/starknet-os/src/hints/execution.rs index 495cd17a9..d6a8e712c 100644 --- a/crates/starknet-os/src/hints/execution.rs +++ b/crates/starknet-os/src/hints/execution.rs @@ -478,10 +478,11 @@ where execute_coroutine(end_tx_async::(exec_scopes))? } +#[rustfmt::skip] pub const ENTER_CALL: &str = indoc! {r#" - execution_helper.enter_call( - execution_info_ptr=ids.execution_context.execution_info.address_)"# -}; +execution_helper.enter_call( + cairo_execution_info=ids.execution_context.execution_info)"#}; + pub async fn enter_call_async( vm: &mut VirtualMachine, exec_scopes: &mut ExecutionScopes, @@ -492,7 +493,9 @@ where PCS: PerContractStorage + 'static, { let execution_info_ptr = vm.get_relocatable( - (get_ptr_from_var_name(vars::ids::EXECUTION_CONTEXT, vm, ids_data, ap_tracking)? + 4i32).unwrap(), + (get_ptr_from_var_name(vars::ids::EXECUTION_CONTEXT, vm, ids_data, ap_tracking)? + + ExecutionContext::execution_info_offset()) + .unwrap(), )?; let execution_helper = exec_scopes.get::>(vars::scopes::EXECUTION_HELPER)?; diff --git a/crates/starknet-os/src/hints/unimplemented.rs b/crates/starknet-os/src/hints/unimplemented.rs index dbc47bb94..f13d4b4db 100644 --- a/crates/starknet-os/src/hints/unimplemented.rs +++ b/crates/starknet-os/src/hints/unimplemented.rs @@ -22,10 +22,6 @@ output = sha2_compress_function(IV, w) padding = (message + IV + output) * number_of_missing_blocks segments.write_arg(ids.sha256_ptr_end, padding)"#}; -#[allow(unused)] -pub const HINT_2: &str = indoc! {r#"execution_helper.enter_call( -cairo_execution_info=ids.execution_context.execution_info)"#}; - #[allow(unused)] pub const HINT_3: &str = indoc! {r#"memory[ap] = to_felt_or_relocatable(os_input.prev_block_hash)"#};