From 89338e0c3a038bf674de931bc3760ed6dd767176 Mon Sep 17 00:00:00 2001 From: aSpite Date: Wed, 24 Jan 2024 15:32:46 +0400 Subject: [PATCH] fix typo + add decimal representation of 0xffff --- docs/learn/tvm-instructions/tvm-exit-codes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/learn/tvm-instructions/tvm-exit-codes.md b/docs/learn/tvm-instructions/tvm-exit-codes.md index 821bd203e6..a54863b6fc 100644 --- a/docs/learn/tvm-instructions/tvm-exit-codes.md +++ b/docs/learn/tvm-instructions/tvm-exit-codes.md @@ -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) | @@ -39,5 +39,5 @@ The list of standard exit codes contains all universal TVM exit codes defined fo 1 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. ::: \ No newline at end of file