Skip to content

Commit d8ee5e4

Browse files
fix(starknet_os): deref ptrs in enter_call (#6764)
1 parent f39e3d6 commit d8ee5e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/starknet_os/src/hints/hint_implementation/execution/implementation.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,24 +300,24 @@ pub(crate) fn end_tx<S: StateReader>(
300300
pub(crate) fn enter_call<S: StateReader>(
301301
HintArgs { hint_processor, ids_data, vm, ap_tracking, .. }: HintArgs<'_, '_, S>,
302302
) -> OsHintResult {
303-
let execution_info_ptr = get_address_of_nested_fields(
303+
let execution_info_ptr = vm.get_relocatable(get_address_of_nested_fields(
304304
ids_data,
305305
Ids::ExecutionContext,
306306
CairoStruct::ExecutionContextPtr,
307307
vm,
308308
ap_tracking,
309309
&["execution_info"],
310310
hint_processor.os_program,
311-
)?;
312-
let deprecated_tx_info_ptr = get_address_of_nested_fields(
311+
)?)?;
312+
let deprecated_tx_info_ptr = vm.get_relocatable(get_address_of_nested_fields(
313313
ids_data,
314314
Ids::ExecutionContext,
315315
CairoStruct::ExecutionContextPtr,
316316
vm,
317317
ap_tracking,
318318
&["deprecated_tx_info"],
319319
hint_processor.os_program,
320-
)?;
320+
)?)?;
321321

322322
hint_processor
323323
.get_mut_current_execution_helper()?

0 commit comments

Comments
 (0)