Skip to content

Commit

Permalink
fixed erc1155 balance in SearchWallet
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlee348 committed Nov 25, 2024
1 parent 958ac1e commit f237cb1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const BalanceItem = ({ balance }: BalanceItemProps) => {

const getQuantity = () => {
if (balance.contractType === 'ERC721' || balance.contractType === 'ERC1155') {
return balance.balance
return balance.uniqueCollectibles
}
const decimals = isNativeToken ? nativeTokenInfo.decimals : balance?.contractInfo?.decimals
const bal = ethers.formatUnits(balance.balance, decimals || 0)
Expand Down

0 comments on commit f237cb1

Please sign in to comment.