fix(@wallet): add missing field to multitransaction

Fixes #11010
This commit is contained in:
Dario Gabriel Lipicar 2023-06-09 13:51:31 -03:00 committed by dlipicar
parent a0d72f9532
commit 546ed657ec
2 changed files with 2 additions and 0 deletions

View File

@ -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)

View File

@ -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].} =