fix: small openseaV2 client fix

This commit is contained in:
Dario Gabriel Lipicar 2023-10-26 03:28:44 -03:00 committed by dlipicar
parent e5fbe40b9a
commit dca38d1d32
1 changed files with 4 additions and 0 deletions

View File

@ -297,6 +297,10 @@ func (o *ClientV2) FetchCollectionsDataByContractID(contractIDs []thirdparty.Con
return nil, err return nil, err
} }
if contractData == nil || contractData.Collection == "" {
continue
}
collectionData, err := o.fetchCollectionDataBySlug(id.ChainID, contractData.Collection) collectionData, err := o.fetchCollectionDataBySlug(id.ChainID, contractData.Collection)
if err != nil { if err != nil {
return nil, err return nil, err