mirror of
https://github.com/status-im/status-go.git
synced 2025-02-18 01:37:22 +00:00
fix: minor collectible provider fixes
This commit is contained in:
parent
cd83a5fe00
commit
4b394e088e
3
services/wallet/thirdparty/alchemy/types.go
vendored
3
services/wallet/thirdparty/alchemy/types.go
vendored
@ -94,7 +94,7 @@ type Contract struct {
|
|||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Symbol string `json:"symbol"`
|
Symbol string `json:"symbol"`
|
||||||
TokenType string `json:"tokenType"`
|
TokenType string `json:"tokenType"`
|
||||||
OpenSeaMetadata OpenSeaMetadata `json:"openSeaMetadata"`
|
OpenSeaMetadata OpenSeaMetadata `json:"openseaMetadata"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ContractList struct {
|
type ContractList struct {
|
||||||
@ -160,6 +160,7 @@ func (c *Contract) toCollectionData(id thirdparty.ContractID) thirdparty.Collect
|
|||||||
Provider: AlchemyID,
|
Provider: AlchemyID,
|
||||||
Name: c.Name,
|
Name: c.Name,
|
||||||
ImageURL: c.OpenSeaMetadata.ImageURL,
|
ImageURL: c.OpenSeaMetadata.ImageURL,
|
||||||
|
Traits: make(map[string]thirdparty.CollectionTrait, 0),
|
||||||
}
|
}
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
1
services/wallet/thirdparty/infura/types.go
vendored
1
services/wallet/thirdparty/infura/types.go
vendored
@ -183,5 +183,6 @@ func (c *ContractMetadata) toCommon(id thirdparty.ContractID) thirdparty.Collect
|
|||||||
ID: id,
|
ID: id,
|
||||||
Provider: InfuraID,
|
Provider: InfuraID,
|
||||||
Name: c.Name,
|
Name: c.Name,
|
||||||
|
Traits: make(map[string]thirdparty.CollectionTrait, 0),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user