From 9c6f6f1777134164e4221520ccd88a89591f39ea Mon Sep 17 00:00:00 2001 From: Antonoff <35700168+memearchivarius@users.noreply.github.com> Date: Thu, 29 Aug 2024 09:12:15 +0300 Subject: [PATCH] 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 --- .../guidelines/message-delivery-guarantees.mdx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/develop/smart-contracts/guidelines/message-delivery-guarantees.mdx b/docs/develop/smart-contracts/guidelines/message-delivery-guarantees.mdx index 88bd8f2b56..0abbd3023f 100644 --- a/docs/develop/smart-contracts/guidelines/message-delivery-guarantees.mdx +++ b/docs/develop/smart-contracts/guidelines/message-delivery-guarantees.mdx @@ -60,10 +60,10 @@ More detailed and accurate description on the [Transaction Layout](/develop/data ### Transaction outcome -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. +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. Also TVM [compute phase may be skipped](/learn/tvm-instructions/tvm-overview#compute-phase-skipped) for some reasons like absence of funds or state. -:::info +:::info for toncenter api v3 To determine successful transaction one should use tx.description.action.success && tx.description.compute_ph.success: ::: ```json @@ -87,8 +87,12 @@ To determine successful transaction one should use tx.description.action.success Transaction may have one of three results: - Success, exit code 0 or 1 -- Fail, `aborted: true` -- Fail, [exit code >= 2 ](https://testnet.tonviewer.com/transaction/5889803bb1e0f58fdee381382fe1e38f74f3ea002a700441f8a21d52f7234ef8), `aborted: true` +- Fail, `aborted: true` without execution +- Fail, [exit code](/learn/tvm-instructions/tvm-exit-codes), `aborted: true` + +:::info for toncenter api v3 +`aborted: true` is a toncenter field, transaction has no such field +::: ## What is a Logical time?