chore: Use correct unique key for collectibles (#15736)

This commit is contained in:
Cuteivist 2024-07-24 21:18:33 +02:00 committed by GitHub
parent c2a8817a80
commit 2175311c86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ QObject {
/** /**
Expected model structure: Expected model structure:
tokenId [string] - unique identifier of a collectible symbol [string] - unique identifier of a collectible
collectionUid [string] - unique identifier of a collection collectionUid [string] - unique identifier of a collection
contractAddress [string] - collectible's contract address contractAddress [string] - collectible's contract address
name [string] - collectible's name e.g. "Magicat" name [string] - collectible's name e.g. "Magicat"
@ -75,7 +75,7 @@ QObject {
? model.communityId ? model.communityId
: model.collectionUid : model.collectionUid
readonly property string key: model.tokenId readonly property string key: model.symbol
readonly property url icon: readonly property url icon:
model.imageUrl || model.mediaUrl || Qt.resolvedUrl("") model.imageUrl || model.mediaUrl || Qt.resolvedUrl("")
@ -101,7 +101,7 @@ QObject {
expectedRoles: [ expectedRoles: [
"ownership", "communityId", "collectionUid", "imageUrl", "ownership", "communityId", "collectionUid", "imageUrl",
"mediaUrl", "tokenId" "mediaUrl", "symbol"
] ]
exposedRoles: ["balance", "groupingValue", "icon", "key"] exposedRoles: ["balance", "groupingValue", "icon", "key"]
} }