-
Notifications
You must be signed in to change notification settings - Fork 110
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
Document how to capture assertion exceptions and show in a zkApp UI #264
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a question, but approving.
Should we mention or show an example assertion that uses a custom error message of INSUFFICIENT_BALANCE
so they understand how the pieces fit together? (I mean literally the assertion itself, and no other lines of surrounding code.)
Closes #232
This PR adds a section at the end of the section How to Write a zkApp UI on how to capture assertion errors and display helpful messages in the UI.
We can link to this page documenting all the assertion exceptions and ways to mitigate them when it is created.