@@ -16,6 +16,7 @@ import { EsdtType } from "./entities/esdt.type";
1616import { ElasticIndexerService } from "src/common/indexer/elastic/elastic.indexer.service" ;
1717import { randomUUID } from "crypto" ;
1818import { EsdtSubType } from "./entities/esdt.sub.type" ;
19+ import { PluginService } from "../../common/plugins/plugin.service" ;
1920
2021@Injectable ( )
2122export class EsdtService {
@@ -27,6 +28,7 @@ export class EsdtService {
2728 private readonly cachingService : CacheService ,
2829 private readonly vmQueryService : VmQueryService ,
2930 private readonly indexerService : IndexerService ,
31+ private readonly pluginService : PluginService ,
3032 @Inject ( forwardRef ( ( ) => AssetsService ) )
3133 private readonly assetsService : AssetsService ,
3234 private readonly elasticIndexerService : ElasticIndexerService
@@ -367,7 +369,9 @@ export class EsdtService {
367369 }
368370
369371 async getTokenSupply ( identifier : string ) : Promise < EsdtSupply > {
370- const { supply, minted, burned, initialMinted } = await this . gatewayService . getEsdtSupply ( identifier ) ;
372+ const esdtSupply = await this . gatewayService . getEsdtSupply ( identifier ) ;
373+ this . pluginService . formatTokenSupply ( identifier , esdtSupply ) ;
374+ const { supply, minted, burned, initialMinted } = esdtSupply ;
371375
372376 const isCollectionOrToken = identifier . split ( '-' ) . length === 2 ;
373377 if ( isCollectionOrToken ) {
0 commit comments