diff --git a/vm/src/hint_processor/hint_processor_definition.rs b/vm/src/hint_processor/hint_processor_definition.rs index c40c51cb58..29bae5a5f8 100644 --- a/vm/src/hint_processor/hint_processor_definition.rs +++ b/vm/src/hint_processor/hint_processor_definition.rs @@ -68,7 +68,7 @@ pub trait HintProcessorLogic { // A map of hints that can be used to extend the current map of hints for the vm run // The map matches the pc at which the hints should be executed to a vec of compiled hints (Outputed by HintProcessor::CompileHint) -pub type HintExtension = Box>>>; +pub type HintExtension = HashMap>>; pub trait HintProcessor: HintProcessorLogic + ResourceTracker {} impl HintProcessor for T where T: HintProcessorLogic + ResourceTracker {} diff --git a/vm/src/vm/vm_core.rs b/vm/src/vm/vm_core.rs index d8408afa48..1b00e9c052 100644 --- a/vm/src/vm/vm_core.rs +++ b/vm/src/vm/vm_core.rs @@ -467,7 +467,7 @@ impl VirtualMachine { .map_err(|err| VirtualMachineError::Hint(Box::new((idx - s, err))))?; // Check if the hint executed adds new hints, and update the hint_ranges & hint_datas accordingly if let Some(hint_extension) = res { - for (hint_pc, hints) in *hint_extension { + for (hint_pc, hints) in hint_extension { if let Ok(len) = NonZeroUsize::try_from(hints.len()) { hint_ranges.insert(hint_pc, (hint_datas.len(), len)); hint_datas.extend(hints);