From 86138b42fec70cdc17bd0dd86c5ec16e3729e7e3 Mon Sep 17 00:00:00 2001 From: miiu Date: Fri, 22 Nov 2024 14:59:54 +0200 Subject: [PATCH] exclude dynamic meta esdt --- data/tokens.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/data/tokens.go b/data/tokens.go index e878facf..967e13ee 100644 --- a/data/tokens.go +++ b/data/tokens.go @@ -6,7 +6,10 @@ import ( "github.com/multiversx/mx-chain-core-go/core" ) -const metaESDT = "MetaESDT" +const ( + metaESDT = "MetaESDT" + dynamicMetaESDT = "DynamicMetaESDT" +) // NFTDataUpdate will contain the update information for an NFT or SFT type NFTDataUpdate struct { @@ -129,7 +132,7 @@ func (ti *tokensInfo) GetAll() []*TokenInfo { func (ti *tokensInfo) GetAllWithoutMetaESDT() []*TokenInfo { tokens := make([]*TokenInfo, 0) for _, tokenData := range ti.tokensInfo { - if tokenData.Type == metaESDT { + if tokenData.Type == metaESDT || tokenData.Type == dynamicMetaESDT { continue }