reilabs / starknet-replay

CLI tool to replay Starknet transactions and profile libfuncs usage.
0 stars 0 forks source link

Handle `Felt252SerdeError` #20

Open Eagle941 opened 1 month ago

Eagle941 commented 1 month ago

Method ContractClass::extract_sierra_program returns an error of type Felt252SerdeError. This error enum is private which prevents nice integration with thiserror crate and the error module.

At the moment the value returned by extract_sierra_program is just unwrapped which may lead to panic (though low probability because it doesn't depend on user inserted data). Proper fix requires changes to the crate cairo-lang-starknet-classes.