Skip to content

[TVM > Exit codes] Research some missing exit codes and update the page #504

@novusnota

Description

@novusnota

For example, 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).

Additionally, there are new exit codes related to extra currency management, where some extended the use of existing codes, while others were introduced in a different phase. That is, the same exit code number could suddenly be used both in compute and action phases, and mean different things depending on the phase.

Re: tact-lang/tact#1825

Metadata

Metadata

Assignees

Labels

scope: tvm/tvm folder: TON Virtual Machine

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions