@@ -46,6 +46,14 @@ func (h *Handler) convertNFT(ctx context.Context, item core.NftItem, book addres
46
46
}))
47
47
}
48
48
var image , description string
49
+ if item .Metadata != nil {
50
+ if imageI , prs := item .Metadata ["image" ]; prs {
51
+ image , _ = imageI .(string )
52
+ }
53
+ if descriptionI , prs := item .Metadata ["description" ]; prs {
54
+ description , _ = descriptionI .(string )
55
+ }
56
+ }
49
57
if item .CollectionAddress != nil {
50
58
cInfo , _ := metaCache .getCollectionMeta (ctx , * item .CollectionAddress )
51
59
if cc , prs := book .GetCollectionInfoByAddress (* item .CollectionAddress ); prs {
@@ -66,14 +74,6 @@ func (h *Handler) convertNFT(ctx context.Context, item core.NftItem, book addres
66
74
nftItem .Metadata ["buttons" ] = buttons
67
75
}
68
76
}
69
- if item .Metadata != nil {
70
- if imageI , prs := item .Metadata ["image" ]; prs {
71
- image , _ = imageI .(string )
72
- }
73
- if descriptionI , prs := item .Metadata ["description" ]; prs {
74
- description , _ = descriptionI .(string )
75
- }
76
- }
77
77
if len (nftItem .ApprovedBy ) > 0 && nftItem .Verified {
78
78
nftItem .Trust = oas .TrustType (core .TrustWhitelist )
79
79
} else {
0 commit comments