Skip to content

Commit 9c6f6f1

Browse files
Additional changes to Msg & Tx page (#744)
* Transaction outcome Definition of success and some TVM details. * Upd transaction outcome * Update message-delivery-guarantees.mdx * Update tvm-overview.mdx * Update message-delivery-guarantees.mdx
1 parent 6f0e3cf commit 9c6f6f1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/develop/smart-contracts/guidelines/message-delivery-guarantees.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ More detailed and accurate description on the [Transaction Layout](/develop/data
6060

6161
### Transaction outcome
6262

63-
There is a [TVM exit code](/learn/tvm-instructions/tvm-exit-codes) for transaction which had compute phase, if it is >1 then there was an error.
63+
There is a [TVM exit code](/learn/tvm-instructions/tvm-exit-codes) for transaction which had compute phase, if it is not 0 or 1 then there was an error.
6464
Also TVM [compute phase may be skipped](/learn/tvm-instructions/tvm-overview#compute-phase-skipped) for some reasons like absence of funds or state.
6565

66-
:::info
66+
:::info for toncenter api v3
6767
To determine successful transaction one should use tx.description.action.success && tx.description.compute_ph.success:
6868
:::
6969
```json
@@ -87,8 +87,12 @@ To determine successful transaction one should use tx.description.action.success
8787
Transaction may have one of three results:
8888

8989
- Success, exit code 0 or 1
90-
- Fail, `aborted: true`
91-
- Fail, [exit code >= 2 ](https://testnet.tonviewer.com/transaction/5889803bb1e0f58fdee381382fe1e38f74f3ea002a700441f8a21d52f7234ef8), `aborted: true`
90+
- Fail, `aborted: true` without execution
91+
- Fail, [exit code](/learn/tvm-instructions/tvm-exit-codes), `aborted: true`
92+
93+
:::info for toncenter api v3
94+
`aborted: true` is a toncenter field, transaction has no such field
95+
:::
9296

9397
## What is a Logical time?
9498

0 commit comments

Comments
 (0)