Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #6954: Balance of ERC721 when 2 added with different token identi…
Browse files Browse the repository at this point in the history
…fiers (#6983)

Include the token's `tokenId` in `assetBalanceId` so two different ERC721 NFTs with the same contract address, token and chain id can be added and have balance displayed correctly.
  • Loading branch information
StephenHeaps authored Feb 23, 2023
1 parent 42c7404 commit dacdd14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/BraveWallet/Extensions/BraveWalletExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ extension BraveWallet.BlockchainToken {

/// The id to map with the return balance from RPCService
var assetBalanceId: String {
contractAddress + symbol + chainId
contractAddress + symbol + chainId + tokenId
}

var isAuroraSupportedToken: Bool {
Expand Down

0 comments on commit dacdd14

Please # to comment.