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

feat: parse data field for provider errors #513

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

xJonathanLEI
Copy link
Owner

Supersedes #483.

Certain StarknetError variants now wrap an inner type, allowing access to the data field from JSON-RPC error responses. These variants are:

  • ContractError
  • UnexpectedError
  • NoTraceAvailable

among which data for ContractError would be the most useful for inspecting error details.

@xJonathanLEI xJonathanLEI merged commit 7b23df2 into master Dec 5, 2023
24 checks passed
@xJonathanLEI xJonathanLEI deleted the dev/provider_error_data branch December 5, 2023 08:26
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