mirror of
https://github.com/status-im/status-go.git
synced 2025-01-13 08:05:40 +00:00
fix: keep original case for collectible trait types (#2984)
This commit is contained in:
parent
eadb698603
commit
ba053c8a5d
@ -169,7 +169,7 @@ func (o *OpenseaClient) fetchAllAssetsByOwnerAndCollection(owner common.Address,
|
||||
|
||||
for _, asset := range container.Assets {
|
||||
for i := range asset.Traits {
|
||||
asset.Traits[i].TraitType = strings.Replace(strings.ToUpper(asset.Traits[i].TraitType), "_", " ", 1)
|
||||
asset.Traits[i].TraitType = strings.Replace(asset.Traits[i].TraitType, "_", " ", 1)
|
||||
asset.Traits[i].Value = TraitValue(strings.Title(string(asset.Traits[i].Value)))
|
||||
}
|
||||
assets = append(assets, asset)
|
||||
|
Loading…
x
Reference in New Issue
Block a user