From c15ec39eb68c45a9b1cce1c9618087eecd1e4830 Mon Sep 17 00:00:00 2001 From: whichqua Date: Wed, 7 Aug 2024 13:16:18 +0300 Subject: [PATCH] fix: minor fixes --- vm/src/hint_processor/builtin_hint_processor/secp/hints.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vm/src/hint_processor/builtin_hint_processor/secp/hints.rs b/vm/src/hint_processor/builtin_hint_processor/secp/hints.rs index 21097e9214..19f1f9bcba 100644 --- a/vm/src/hint_processor/builtin_hint_processor/secp/hints.rs +++ b/vm/src/hint_processor/builtin_hint_processor/secp/hints.rs @@ -89,9 +89,8 @@ pub fn compute_q_mod_prime( ap_tracking: &ApTracking, _constants: &HashMap, ) -> Result<(), HintError> { - let secp_p = exec_scopes.get_ref("SECP256R1_P")?; let val = Uint384::from_var_name("val", vm, ids_data, ap_tracking)?.pack86(); - let (q, r) = val.div_mod_floor(&secp_p); + let (q, r) = val.div_mod_floor(&SECP256R1_P); if !r.is_zero() { return Err(HintError::SecpVerifyZero(Box::new(val))); }