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: improved error message on contract calls #3000

Closed
2 tasks
enitrat opened this issue May 2, 2023 · 0 comments · Fixed by #3007
Closed
2 tasks

feat: improved error message on contract calls #3000

enitrat opened this issue May 2, 2023 · 0 comments · Fixed by #3007
Labels
enhancement New feature or request

Comments

@enitrat
Copy link
Contributor

enitrat commented May 2, 2023

Feature Request

Describe the Feature Request

Currently, testing contract interoperability can fail with the ENTRYPOINT_FAILED error when anything fails in the entrypoint.
It makes it really hard to find the actual cause of the error.
Describe Preferred Solution

It would be great if the error message returned was actually the one specified in the contract. For example, if my contract panics with a panic_with_felt252('not implemented') error, it should return not implemented.

Describe Alternatives

Related Code

Additional Context

If the feature request is approved, would you be willing to submit a PR?
(Help can be provided if you need assistance submitting a PR)

  • Yes
  • No
@enitrat enitrat added the enhancement New feature or request label May 2, 2023
@orizi orizi linked a pull request May 2, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant