From 546ed657ecbd1af42ef6e879a912eb9cd81175fc Mon Sep 17 00:00:00 2001 From: Dario Gabriel Lipicar Date: Fri, 9 Jun 2023 13:51:31 -0300 Subject: [PATCH] fix(@wallet): add missing field to multitransaction Fixes #11010 --- src/app_service/service/transaction/dto.nim | 1 + src/backend/transactions.nim | 1 + 2 files changed, 2 insertions(+) diff --git a/src/app_service/service/transaction/dto.nim b/src/app_service/service/transaction/dto.nim index 03c78c87ec..3a90643528 100644 --- a/src/app_service/service/transaction/dto.nim +++ b/src/app_service/service/transaction/dto.nim @@ -150,6 +150,7 @@ proc toMultiTransactionDto*(jsonObj: JsonNode): MultiTransactionDto = discard jsonObj.getProp("fromAsset", result.fromAsset) discard jsonObj.getProp("toAsset", result.toAsset) discard jsonObj.getProp("fromAmount", result.fromAmount) + discard jsonObj.getProp("toAmount", result.toAmount) var multiTxType: int discard jsonObj.getProp("type", multiTxType) result.multiTxType = cast[MultiTransactionType](multiTxType) diff --git a/src/backend/transactions.nim b/src/backend/transactions.nim index d8968fd882..641cb42e77 100644 --- a/src/backend/transactions.nim +++ b/src/backend/transactions.nim @@ -17,6 +17,7 @@ type fromAsset* {.serializedFieldName("fromAsset").}: string toAsset* {.serializedFieldName("toAsset").}: string fromAmount* {.serializedFieldName("fromAmount").}: string + toAmount* {.serializedFieldName("toAmount").}: string multiTxType* {.serializedFieldName("type").}: MultiTransactionType proc getTransactionByHash*(chainId: int, hash: string): RpcResponse[JsonNode] {.raises: [Exception].} =