Skip to content

Commit

Permalink
fix: getfungibletokens
Browse files Browse the repository at this point in the history
  • Loading branch information
cjkoepke committed Jul 25, 2024
1 parent e12dbb6 commit fc688f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/classes/WalletBalanceMap.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export class WalletBalanceMap<
getFungibleTokens = (): TAssetAmountMap<AssetMetadata> => {
const map: TAssetAmountMap<AssetMetadata> = new WalletAssetMap();
[...this.entries()].forEach(([key, asset]) => {
if (asset.metadata.decimals > 0) {
if (
asset.metadata.decimals > 0 ||
(asset.metadata.decimals === 0 && asset.amount > 1n)
) {
map.set(key, asset);
}
});
Expand Down

0 comments on commit fc688f8

Please sign in to comment.