From b8b878809ae7b3cecefab2ae94233cd1f5bfccdf Mon Sep 17 00:00:00 2001 From: Elrond/ Date: Wed, 16 Nov 2022 15:55:07 +0200 Subject: [PATCH] FIX: Remove withMetaData, make it omitempty --- data/api/apiBlock.go | 1 - data/outport/dtos.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/data/api/apiBlock.go b/data/api/apiBlock.go index 9f5670933..bcc12de0c 100644 --- a/data/api/apiBlock.go +++ b/data/api/apiBlock.go @@ -149,5 +149,4 @@ type GetBlockParameters struct { type GetAlteredAccountsForBlockOptions struct { GetBlockParameters TokensFilter string - WithMetadata bool } diff --git a/data/outport/dtos.go b/data/outport/dtos.go index 19fc88d83..cd36752b6 100644 --- a/data/outport/dtos.go +++ b/data/outport/dtos.go @@ -23,7 +23,7 @@ type AccountTokenData struct { Identifier string `json:"identifier"` Balance string `json:"balance"` Properties string `json:"properties"` - MetaData *TokenMetaData `json:"metadata"` + MetaData *TokenMetaData `json:"metadata,omitempty"` AdditionalData *AdditionalAccountTokenData `json:"additionalData,omitempty"` }