diff --git a/crates/blockifier/src/versioned_constants.rs b/crates/blockifier/src/versioned_constants.rs index a975ab0e98..93cf08b0d5 100644 --- a/crates/blockifier/src/versioned_constants.rs +++ b/crates/blockifier/src/versioned_constants.rs @@ -251,12 +251,8 @@ impl VersionedConstants { }; Self { validate_max_n_steps, max_recursion_depth, ..base_overrides } } -} - -impl TryFrom<&Path> for VersionedConstants { - type Error = VersionedConstantsError; - fn try_from(path: &Path) -> Result { + pub fn new_from_path_to_json_file(path: &Path) -> Result { Ok(serde_json::from_reader(std::fs::File::open(path)?)?) } }