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

Replace string with a structured error in CONTRACT_ERROR & TRANSACTION_EXECUTION_ERROR #219

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

ArielElp
Copy link
Collaborator

@ArielElp ArielElp commented Jul 25, 2024

In rpc <= 0.7.0, returned errors are strings encoding execution traces (used to be a lot of redundancy, e.g. scary "got an error while executing a hint" repeating a bunch of times, this should already be cleaner in starknet v0.13.2). Now that we have more structure (also see stack_trace.rs) in the blockifier, we can return the structured data and let sdks/wallets process it rather than rely on string manipulations.


This change is Reviewable

Copy link
Collaborator Author

@ArielElp ArielElp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ArielElp)

@ArielElp ArielElp changed the base branch from master to v0.8.0 September 19, 2024 12:12
@ArielElp ArielElp force-pushed the structured_error_trace branch from 03664bc to 6feb690 Compare September 19, 2024 12:16
Copy link
Collaborator Author

@ArielElp ArielElp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ArielElp)

@ArielElp ArielElp merged commit 2820735 into v0.8.0 Sep 19, 2024
@ArielElp ArielElp deleted the structured_error_trace branch September 19, 2024 12:17
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

Successfully merging this pull request may close these issues.

1 participant