Skip to content

Commit 6490c43

Browse files
committed
Refactor of error in compile_hint
1 parent 789d359 commit 6490c43

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

vm/src/hint_processor/builtin_hint_processor/builtin_hint_processor_definition.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -510,12 +510,14 @@ impl HintProcessorLogic for BuiltinHintProcessor {
510510
cairo0_hints::SECP_REDUCE_X => cairo0_hints::reduce_x,
511511
#[cfg(feature = "cairo-0-data-availability-hints")]
512512
super::kzg_da::WRITE_DIVMOD_SEGMENT => super::kzg_da::write_div_mod_segment,
513-
code => {
514-
return Err(
515-
crate::vm::errors::vm_errors::VirtualMachineError::CompileHintFail(
516-
code.to_string().into_boxed_str(),
517-
),
518-
);
513+
_code => {
514+
return Ok(any_box!(HintProcessorData {
515+
code: hint_code.to_string(),
516+
ap_tracking: ap_tracking_data.clone(),
517+
ids_data,
518+
constants,
519+
f: None
520+
}))
519521
}
520522
};
521523

0 commit comments

Comments
 (0)