From 42db06f5b56f369cdeabf536245786e3f97a109a Mon Sep 17 00:00:00 2001 From: Elias Tazartes Date: Thu, 21 Dec 2023 18:25:06 +0100 Subject: [PATCH] fix: fix PR comments --- CHANGELOG.md | 2 ++ vm/src/hint_processor/builtin_hint_processor/hint_utils.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b627a8f9eb..f4a3b28de3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ #### Upcoming Changes +* refactor: remove static lifetime for name str parameter requirement for constant getter + * feat(BREAKING): Replace `cairo-felt` crate with `starknet-types-core` [#1408](https://github.com/lambdaclass/cairo-vm/pull/1408) * feat(BREAKING): Add Cairo 1 proof mode compilation and execution [#1517] (https://github.com/lambdaclass/cairo-vm/pull/1517) diff --git a/vm/src/hint_processor/builtin_hint_processor/hint_utils.rs b/vm/src/hint_processor/builtin_hint_processor/hint_utils.rs index 24152b3f3d..a1ef39e017 100644 --- a/vm/src/hint_processor/builtin_hint_processor/hint_utils.rs +++ b/vm/src/hint_processor/builtin_hint_processor/hint_utils.rs @@ -124,7 +124,7 @@ pub fn get_reference_from_var_name<'a>( } pub fn get_constant_from_var_name<'a>( - var_name: &'a str, + var_name: &str, constants: &'a HashMap, ) -> Result<&'a Felt252, HintError> { constants