diff --git a/crates/blockifier/src/versioned_constants.rs b/crates/blockifier/src/versioned_constants.rs index 1ac9279637..3107516644 100644 --- a/crates/blockifier/src/versioned_constants.rs +++ b/crates/blockifier/src/versioned_constants.rs @@ -262,12 +262,8 @@ impl VersionedConstants { ..Self::latest_constants().clone() } } -} - -impl TryFrom<&Path> for VersionedConstants { - type Error = VersionedConstantsError; - fn try_from(path: &Path) -> Result { + pub fn from_path(path: &Path) -> Result { Ok(serde_json::from_reader(std::fs::File::open(path)?)?) } }