diff --git a/cairo_vm_hints/src/hints/mod.rs b/cairo_vm_hints/src/hints/mod.rs index 0ca284a..597a831 100644 --- a/cairo_vm_hints/src/hints/mod.rs +++ b/cairo_vm_hints/src/hints/mod.rs @@ -30,7 +30,7 @@ pub fn run_hint( constants: &HashMap, ) -> Result<(), HintError> { for (hint_str, hint_func) in HINTS { - if hint_data.code == hint_str.to_string() { + if hint_data.code == *hint_str { return hint_func(vm, exec_scope, hint_data, constants); } }