Skip to content

Commit

Permalink
check if nft.type exist and add NftSubType filter (#1394)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfaur09 authored Dec 12, 2024
1 parent dfc82d6 commit c051521
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/endpoints/nfts/nft.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import { NftRarities } from "./entities/nft.rarities";
import { SortCollectionNfts } from "../collections/entities/sort.collection.nfts";
import { TokenAssets } from "src/common/assets/entities/token.assets";
import { ScamInfo } from "src/common/entities/scam-info.dto";
import { NftSubType } from "./entities/nft.sub.type";

@Injectable()
export class NftService {
Expand Down Expand Up @@ -217,7 +218,10 @@ export class NftService {
return undefined;
}

if (nft.type.in(NftType.SemiFungibleESDT, NftType.MetaESDT)) {
if (nft.type && nft.type.in(
NftType.SemiFungibleESDT, NftType.MetaESDT,
NftSubType.DynamicSemiFungibleESDT, NftSubType.DynamicMetaESDT
)) {
await this.applySupply(nft);
}

Expand Down

0 comments on commit c051521

Please sign in to comment.