Skip to content

Make core.CasmClass ByteCodeSegmentLenghts pointer field #3289

@EgeCaner

Description

@EgeCaner

Seems like not all Casm Classes has ByteCodeSegmentLenghts field, rust type definition uses Option type. This difference in representation was causing inconsistencies while go-rust communication, while rust was expecting Option::None, we were providing Zero Values. To have a workaround in Juno v0.15.11 we changed the starknet.CasmClass.ByteCodeSegmentLenghts to pointer field, we use this type while both fetching the class from FGW and in rust <-> go communication. Considering this change, we should also update the core.CasmClass to use pointer field

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions