fix(wallet): Consider ERC1155 as NFT (#15365)
This commit is contained in:
parent
1d3c1e7da5
commit
c1cc74750f
|
@ -205,7 +205,10 @@ QtObject:
|
|||
read = getChainId
|
||||
|
||||
proc getIsNFT*(self: ActivityEntry): bool {.slot.} =
|
||||
return self.metadata.transferType.isSome() and self.metadata.transferType.unsafeGet() == TransferType.Erc721
|
||||
if self.metadata.transferType.isNone():
|
||||
return false
|
||||
let transferType = self.metadata.transferType.unsafeGet()
|
||||
return transferType == TransferType.Erc721 or transferType == TransferType.Erc1155
|
||||
|
||||
QtProperty[bool] isNFT:
|
||||
read = getIsNFT
|
||||
|
|
|
@ -19,7 +19,7 @@ type
|
|||
Address
|
||||
Decimals
|
||||
Image
|
||||
# Native, Erc20, Erc721
|
||||
# Native, Erc20, Erc721, Erc1155
|
||||
Type
|
||||
# only be valid if source is custom
|
||||
CommunityId
|
||||
|
|
|
@ -18,7 +18,7 @@ type
|
|||
AddressPerChain
|
||||
Decimals
|
||||
Image
|
||||
# Native, Erc20, Erc721
|
||||
# Native, Erc20, Erc721, Erc1155
|
||||
Type
|
||||
# only be valid if source is custom
|
||||
CommunityId
|
||||
|
|
Loading…
Reference in New Issue