juno icon indicating copy to clipboard operation
juno copied to clipboard

Make `core.CasmClass` `ByteCodeSegmentLenghts` pointer field

Open EgeCaner opened this issue 1 month ago • 0 comments

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

EgeCaner avatar Nov 21 '25 09:11 EgeCaner