Skip to content

Commit

Permalink
Merge pull request #2363 from eqlabs/krisztian/rpc-0.8-get-compiled-c…
Browse files Browse the repository at this point in the history
…asm-segment-lengths

fix(rpc/v08/get_compiled_casm): omit `bytecode_segment_lengths` if missing
  • Loading branch information
kkovaacs authored Nov 12, 2024
2 parents 2b74bf6 + 3146b55 commit 3e16b77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/common/src/casm_class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use crate::EntryPoint;
#[derive(Debug, Serialize, Deserialize, Eq, PartialEq)]
pub struct CasmContractClass {
pub bytecode: Vec<Felt>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub bytecode_segment_lengths: Option<NestedIntList>,
pub compiler_version: String,
pub hints: serde_json::Value,
Expand Down

0 comments on commit 3e16b77

Please sign in to comment.