diff --git a/crates/starknet_api/src/contract_class.rs b/crates/starknet_api/src/contract_class.rs index c8a295d57a..9306b0656e 100644 --- a/crates/starknet_api/src/contract_class.rs +++ b/crates/starknet_api/src/contract_class.rs @@ -116,6 +116,13 @@ impl FromStr for SierraVersion { } } +#[allow(dead_code)] +impl From<(u64, u64, u64)> for SierraVersion { + fn from((major, minor, patch): (u64, u64, u64)) -> Self { + Self::new(major, minor, patch) + } +} + /// All relevant information about a declared contract class, including the compiled contract class /// and other parameters derived from the original declare transaction required for billing. #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]