-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Supply better error messaging on Reverts #823
Comments
is this being currently worked on? I have a solution (more a hack really) to allow for said custom errors. Can submit as a PR if an active solution isn't being built atm. The custom error already exists within the |
Hey @theausicist 👋🏼 I believe @Dhaiwat10 is actively looking into this one, however, I'm sure it won't hurt to raise a PR if you have a solution already. I would say that the issue #1836 is a duplicate of this one - so potentially worth closing in favour of #823 😄 |
Also running into this |
Motivation
A Sway program can define and throw custom error types that are also sent back to caller app (in this case the TS-SDK), it would be useful to generate and map these to custom error objects in JS
Usage example
Temporary basic premise
Possible implementations
hook into revert FAILED_REQUIRE_SIGNAL and try to map out to an enum where applicable
Also review how a developer view logs.
Blocked by:
#828
#829
The text was updated successfully, but these errors were encountered: