diff --git a/CHANGELOG.md b/CHANGELOG.md index dca54a60b1..f1933a809a 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 + * perf: Add `extensive_hints` feature to prevent performance regression for the common use-case [#1503] (https://github.com/lambdaclass/cairo-vm/pull/1503) * Gates changes added by #1491 under the feature flag `extensive_hints` 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 b203697b27..eea8154b92 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