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

Document bounced messages processing semantics for unrecognized messages #1672

Open
anton-trunov opened this issue Feb 1, 2025 · 0 comments
Assignees
Labels
docs: Book /book section of the docs: Guides, Cheatsheets, and a streamlined sequence of educational materials feature: receivers Process internal, external, bounced incoming messages kind: docs Documentation for docs.tact-lang.org kept in docs folder
Milestone

Comments

@anton-trunov
Copy link
Member

anton-trunov commented Feb 1, 2025

It is common on TON blockchain to finish with exit code zero (0) if a bounced message is not recognized by a contract. It's a cheaper alternative in terms of gas to throwing an error. Tact adheres to this common pattern. This is different from processing non-bounced messages where an exception is thrown is the input is not recognized.

@anton-trunov anton-trunov added the kind: docs Documentation for docs.tact-lang.org kept in docs folder label Feb 1, 2025
@anton-trunov anton-trunov added this to the Doc: 2025-02 milestone Feb 1, 2025
@novusnota novusnota added the docs: Book /book section of the docs: Guides, Cheatsheets, and a streamlined sequence of educational materials label Feb 1, 2025
@novusnota novusnota added the feature: receivers Process internal, external, bounced incoming messages label Mar 2, 2025
@novusnota novusnota modified the milestones: Doc: 2025-02, Doc: 2025-03 Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs: Book /book section of the docs: Guides, Cheatsheets, and a streamlined sequence of educational materials feature: receivers Process internal, external, bounced incoming messages kind: docs Documentation for docs.tact-lang.org kept in docs folder
Projects
None yet
Development

No branches or pull requests

2 participants