AlphaWallet / alpha-wallet-ios

An advanced Ethereum/EVM mobile wallet
https://www.alphawallet.com
MIT License
585 stars 360 forks source link

App is crashing on adding wallets having various number of airdrops and nfts #7092

Open akshai-bee opened 7 months ago

akshai-bee commented 7 months ago

name: Bug Report about: App is crashing on adding wallets having various number of airdrops and nfts


Describe the bug Debug console is showing an error of : "Diffable data source detected item identifiers that are equal but have different hash values. Two identifiers which compare as equal must return the same hash value. You must fix this in the Hashable (Swift) or hash property (Objective-C) implementation for the type of these identifiers. Identifiers that are equal but have different hash values"

Steps to reproduce (REQUIRED) By adding an wallet with various number of nfts and airdrops

Error Description in detail (AlphaWallet.TokensViewModel.ViewModelType.nonFungible(AlphaWallet.NonFungibleTokenViewCellViewModel(safeShortTitleInPluralForm: \"LIDO NFT\", symbol: \"LIDO NFT\", nonZeroBalanceCount: 1, isVisible: true, type: AlphaWalletTokenScript.TokenType.erc1155, contractAddress: ethereumAddress:"", server: AlphaWalletCore.RPCServer.polygon, iconImage: AnyPublisher, accessoryType: __C.UITableViewCellAccessoryType, tokenViewModel: AlphaWalletFoundation.TokenViewModel(contractAddress: ethereumAddress: "" , symbol: \"LIDO NFT\", decimals: 0, server: AlphaWalletCore.RPCServer.polygon, type: AlphaWalletTokenS"