mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 13:56:10 +00:00
parent
a0d72f9532
commit
546ed657ec
@ -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)
|
||||
|
@ -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].} =
|
||||
|
Loading…
x
Reference in New Issue
Block a user