reilabs / starknet-replay

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

Identify how to convert from Sierra bytecode to `cairo_lang_sierra::program::Program` #3

Closed Eagle941 closed 3 months ago

Eagle941 commented 3 months ago

Found the function sierra_from_felt252s in cairo-lang-starknet-classes except that it's not public. So I made a fork for the time being.

Eagle941 commented 3 months ago

Instead of using sierra_from_felt252s, I can create a ContractClass and use the method extract_sierra_program to obtain cairo_lang_sierra::program::Program. This doesn't require any library fork.