Skip to content

Commit

Permalink
Merge pull request #307 from multiversx/bug-fix-dynamic-meta-esdts-to…
Browse files Browse the repository at this point in the history
…kens-index

Exclude dynamic meta esdt from tokens index
  • Loading branch information
miiu96 authored Nov 26, 2024
2 parents 0a285b4 + 86138b4 commit 9a1f9ea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions data/tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 9a1f9ea

Please sign in to comment.