From 3fa1dbd373cf210ebfe796da54c4e3f54224ebd2 Mon Sep 17 00:00:00 2001 From: Robert Chaing Date: Tue, 25 Jul 2023 16:21:14 -0700 Subject: [PATCH] Extension function that converts data class to proto was missing fields. --- .../tech/figure/aggregator/api/service/extension/Extension.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/service/src/main/kotlin/tech/figure/aggregator/api/service/extension/Extension.kt b/service/src/main/kotlin/tech/figure/aggregator/api/service/extension/Extension.kt index 18d62206..8876ca30 100644 --- a/service/src/main/kotlin/tech/figure/aggregator/api/service/extension/Extension.kt +++ b/service/src/main/kotlin/tech/figure/aggregator/api/service/extension/Extension.kt @@ -27,8 +27,10 @@ fun TxCoinTransferData.toCoinTransferResult() = streamResponse { fun TxMarkerTransfer.toProto() = markerTransfer { val data = this@toProto + eventType = data.eventType blockHeight = data.blockHeight blockTimestamp = data.blockTimestamp.toInstant().atOffset(ZoneOffset.UTC).toProtoTimestamp() + txHash = data.txHash amount = data.amount denom = data.denom administrator = data.administrator @@ -38,8 +40,10 @@ fun TxMarkerTransfer.toProto() = markerTransfer { fun TxMarkerSupply.toProto() = markerSupply { val data = this@toProto + eventType = data.eventType.toString() blockHeight = data.blockHeight blockTimestamp = data.blockTimestamp.toInstant().atOffset(ZoneOffset.UTC).toProtoTimestamp() + txHash = data.txHash.toString() coins = data.coins.toString() denom = data.denom.toString() amount = data.denom.toString()