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 exit code -13 and exit code -3 #1825

Open
novusnota opened this issue Feb 13, 2025 · 1 comment
Open

Document exit code -13 and exit code -3 #1825

novusnota opened this issue Feb 13, 2025 · 1 comment
Assignees
Labels
docs: Book /book section of the docs: Guides, Cheatsheets, and a streamlined sequence of educational materials kind: docs Documentation for docs.tact-lang.org kept in docs folder
Milestone

Comments

@novusnota
Copy link
Member

novusnota commented Feb 13, 2025

The exit code -13 is thrown for every message sent to a contract with null code and null data (deployed on the mainnet already).

https://tonviewer.com/transaction/dbd76c11fadb4a69a2f17ddaf8285be3f2836090d374e75e5cbeb876467cbdff

The exit code -3 isn't an exit code for the whole transaction, but rather it's a value that RUNVM instruction pushes on the stack in case the actual stack depth after its execution was less than the specified r integer. See: https://docs.ton.org/v3/documentation/tvm/specification/runvm

Thus, the latter should have a note on top saying that it doesn't apply in usual cases (or somesuch)

@novusnota novusnota added docs: Book /book section of the docs: Guides, Cheatsheets, and a streamlined sequence of educational materials kind: docs Documentation for docs.tact-lang.org kept in docs folder labels Feb 13, 2025
@novusnota novusnota added this to the Doc: 2025-02 milestone Feb 13, 2025
@novusnota novusnota self-assigned this Feb 13, 2025
@Shvandre
Copy link
Contributor

Shvandre commented Feb 13, 2025

every message sent to a contract with null code and null data

IIUC null code is enough

@novusnota novusnota modified the milestones: Doc: 2025-02, Doc: 2025-03 Mar 4, 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 kind: docs Documentation for docs.tact-lang.org kept in docs folder
Projects
None yet
Development

No branches or pull requests

2 participants