Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Felt252SerdeError #20

Open
Eagle941 opened this issue May 28, 2024 · 0 comments
Open

Handle Felt252SerdeError #20

Eagle941 opened this issue May 28, 2024 · 0 comments

Comments

@Eagle941
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant