mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-26 21:41:11 +00:00
parent
88d0c2493e
commit
7bb5202a75
@ -119,8 +119,8 @@ type
|
||||
|
||||
proc `%`*(self: ComputeFeeArgs): JsonNode =
|
||||
result = %* {
|
||||
"ethFee": self.ethCurrency.toJsonNode(),
|
||||
"fiatFee": self.fiatCurrency.toJsonNode(),
|
||||
"ethFee": if self.ethCurrency == nil: newCurrencyAmount().toJsonNode() else: self.ethCurrency.toJsonNode(),
|
||||
"fiatFee": if self.fiatCurrency == nil: newCurrencyAmount().toJsonNode() else: self.fiatCurrency.toJsonNode(),
|
||||
"errorCode": self.errorCode.int,
|
||||
"contractUniqueKey": self.contractUniqueKey,
|
||||
}
|
||||
@ -142,8 +142,8 @@ type
|
||||
proc `%`*(self: AirdropFeesArgs): JsonNode =
|
||||
result = %* {
|
||||
"fees": computeFeeArgsToJsonArray(self.fees),
|
||||
"totalEthFee": self.totalEthFee.toJsonNode(),
|
||||
"totalFiatFee": self.totalFiatFee.toJsonNode(),
|
||||
"totalEthFee": if self.totalEthFee == nil: newCurrencyAmount().toJsonNode() else: self.totalEthFee.toJsonNode(),
|
||||
"totalFiatFee": if self.totalFiatFee == nil: newCurrencyAmount().toJsonNode() else: self.totalFiatFee.toJsonNode(),
|
||||
"errorCode": self.errorCode.int,
|
||||
"requestId": self.requestId,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user