fix: minor collectible provider fixes

This commit is contained in:
Dario Gabriel Lipicar 2023-08-07 19:30:32 -03:00 committed by dlipicar
parent cd83a5fe00
commit 4b394e088e
2 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,7 @@ type Contract struct {
Name string `json:"name"`
Symbol string `json:"symbol"`
TokenType string `json:"tokenType"`
OpenSeaMetadata OpenSeaMetadata `json:"openSeaMetadata"`
OpenSeaMetadata OpenSeaMetadata `json:"openseaMetadata"`
}
type ContractList struct {
@ -160,6 +160,7 @@ func (c *Contract) toCollectionData(id thirdparty.ContractID) thirdparty.Collect
Provider: AlchemyID,
Name: c.Name,
ImageURL: c.OpenSeaMetadata.ImageURL,
Traits: make(map[string]thirdparty.CollectionTrait, 0),
}
return ret
}

View File

@ -183,5 +183,6 @@ func (c *ContractMetadata) toCommon(id thirdparty.ContractID) thirdparty.Collect
ID: id,
Provider: InfuraID,
Name: c.Name,
Traits: make(map[string]thirdparty.CollectionTrait, 0),
}
}