From de6fd363067d4f0730c6b561a5dbcab843ee575e Mon Sep 17 00:00:00 2001 From: XTON team <119496329+xtonwallet@users.noreply.github.com> Date: Thu, 30 Mar 2023 18:36:41 +0300 Subject: [PATCH] Update requests-responses.md DApp has to know not only the common result for all messages in a transaction, but also an intermediate result of all messages runs. For example, what if an one from 4 messages won't be sent by an internal error (for example due to `validUntil` parameter), then better to return results per messages to the DApp, which can resend only this one not performed message. --- requests-responses.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requests-responses.md b/requests-responses.md index 462e8b6..4e3bb35 100644 --- a/requests-responses.md +++ b/requests-responses.md @@ -326,7 +326,8 @@ Message structure: Wallet replies with **SendTransactionResponse**: ```tsx -type SendTransactionResponse = SendTransactionResponseSuccess | SendTransactionResponseError; +type SendTransactionMessageResponse = SendTransactionResponseSuccess | SendTransactionResponseError; +type SendTransactionResponse = SendTransactionMessageResponse | SendTransactionMessageResponse[]; interface SendTransactionResponseSuccess { result: ;