Skip to content

Commit

Permalink
fix typo + add decimal representation of 0xffff
Browse files Browse the repository at this point in the history
  • Loading branch information
aSpite committed Jan 24, 2024
1 parent 52a0e34 commit 89338e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/learn/tvm-instructions/tvm-exit-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The list of standard exit codes contains all universal TVM exit codes defined fo
| `8` | Compute Phase | Cell overflow. Writing to builder is not possible since after operation there would be more than 1023 bits or 4 references. |
| `9` | Compute Phase | Cell underflow. Read from slice primitive tried to read more bits or references than there are. |
| `10` | Compute Phase | Dictionary error. Error during manipulation with dictionary (hashmaps). |
| `11` | Compute Phase | Most oftenly caused by trying to call get-method whose id wasn't found in the code (missing `method_id` modifier or wrong get-method name specified when trying to call it). In [TVM docs](https://ton.org/tvm.pdf) its described as "Unknown error, may be thrown by user programs". |
| `11` | Compute Phase | Most often caused by trying to call get-method whose id wasn't found in the code (missing `method_id` modifier or wrong get-method name specified when trying to call it). In [TVM docs](https://ton.org/tvm.pdf) its described as "Unknown error, may be thrown by user programs". |
| `12` | Compute Phase | Thrown by TVM in situations deemed impossible. |
| `13` | Compute Phase | Out of gas error. Thrown by TVM when the remaining gas becomes negative. |
| `-14` | Compute Phase | It means out of gas error, same as `13`. Negative, because it [cannot be faked](https://github.com/ton-blockchain/ton/blob/20758d6bdd0c1327091287e8a620f660d1a9f4da/crypto/vm/vm.cpp#L492) |
Expand All @@ -39,5 +39,5 @@ The list of standard exit codes contains all universal TVM exit codes defined fo
<sup>1</sup> If you encounter such exception in a func contract it probably means a type error in asm declarations.

:::info
Often you can see the exit code `0xffff`. This usually means that the received opcode is unknown to the contract. When writing contracts, this code is set by the developer himself.
Often you can see the exit code `0xffff` (65535 in decimal form). This usually means that the received opcode is unknown to the contract. When writing contracts, this code is set by the developer himself.
:::

0 comments on commit 89338e0

Please sign in to comment.