cairo_lang_starknet_classes::contract_class

Function version_id_from_serialized_sierra_program

Source
pub fn version_id_from_serialized_sierra_program(
    sierra_program: &[BigUintAsHex],
) -> Result<(VersionId, VersionId), Felt252SerdeError>
Expand description

Deserializes the versions from the header of a Sierra program represented as a slice of felt252s.

Returns (sierra_version_id, compiler_version_id). See crate::compiler_version.