From ebccba0c240f5fff8a9b158f5dc9dc6ce3ecf8a5 Mon Sep 17 00:00:00 2001 From: Iuga Mihai Date: Tue, 31 Jan 2023 10:32:43 +0200 Subject: [PATCH] omit empty --- data/transaction/apiTransactionResult.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/transaction/apiTransactionResult.go b/data/transaction/apiTransactionResult.go index 52b28e25..20bdfcfa 100644 --- a/data/transaction/apiTransactionResult.go +++ b/data/transaction/apiTransactionResult.go @@ -25,7 +25,7 @@ type ApiTransactionResult struct { ReceiverUsername []byte `json:"receiverUsername,omitempty"` GasPrice uint64 `json:"gasPrice,omitempty"` GasLimit uint64 `json:"gasLimit,omitempty"` - GasUsed uint64 `json:"gasUsed"` + GasUsed uint64 `json:"gasUsed,omitempty"` Data []byte `json:"data,omitempty"` CodeMetadata []byte `json:"codeMetadata,omitempty"` Code string `json:"code,omitempty"` @@ -58,7 +58,7 @@ type ApiTransactionResult struct { Operation string `json:"operation,omitempty"` Function string `json:"function,omitempty"` InitiallyPaidFee string `json:"initiallyPaidFee,omitempty"` - Fee string `json:"fee"` + Fee string `json:"fee,omitempty"` IsRelayed bool `json:"isRelayed,omitempty"` IsRefund bool `json:"isRefund,omitempty"` CallType string `json:"callType,omitempty"`