Skip to content

Commit

Permalink
Fix: token metadata parser (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky authored Jun 23, 2021
1 parent 5bd912f commit 2614f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/parsers/tzip/tokens/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (t Parser) ParseBigMapDiff(bmd *bigmapdiff.BigMapDiff, storage *ast.TypedAs

if m.Link != "" {
if strings.HasPrefix(m.Link, "ipfs://") {
if found, err := t.tmRepo.GetOne(bmd.Network, bmd.Contract, m.TokenID); err == nil {
if found, err := t.tmRepo.GetOne(bmd.Network, bmd.Contract, m.TokenID); err == nil && found != nil {
if link, ok := found.Extras[""]; ok && link == m.Link {
return nil, nil
}
Expand Down

0 comments on commit 2614f70

Please sign in to comment.