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

Error Handling #49

Merged
merged 14 commits into from
Jan 4, 2023
Merged

Error Handling #49

merged 14 commits into from
Jan 4, 2023

Conversation

gokselcoban
Copy link
Contributor

@gokselcoban gokselcoban commented Dec 23, 2022

Error messages returned from the node are not human-readable. Error messages contain the PC (program counter) of the application. Now, SDK parses the PC and maps it to an explicit message.

Error Message → PC (Program Counter) → Teal Line No → Tealish Line No → Human Readable Message (if exists)

tinyman/v2/amm_approval.map.json contains all mappings, it is possible to add more human-readable messages over time.

The line number in the output message refers to this file. https://github.com/tinymanorg/tinyman-amm-contracts-v2/blob/main/contracts/amm_approval.tl

  • Add changelog

@gokselcoban gokselcoban changed the title Error Messages Error Handling Dec 23, 2022
@gokselcoban gokselcoban merged commit ac706c6 into main Jan 4, 2023
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.

2 participants