diff --git a/package.json b/package.json index 5415a9d..099d499 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@itheum/sdk-mx-data-nft", - "version": "3.4.0", + "version": "3.4.1", "description": "SDK for Itheum's Data NFT Technology on MultiversX Blockchain", "main": "out/index.js", "types": "out/index.d.js", diff --git a/src/sft-minter.ts b/src/sft-minter.ts index c42a1bc..bf7e355 100644 --- a/src/sft-minter.ts +++ b/src/sft-minter.ts @@ -301,7 +301,7 @@ export class SftMinter extends Minter { nftStorageToken?: string; extraAssets?: string[]; } - ): Promise { + ): Promise<{ imageUrl: string; metadataUrl: string; tx: Transaction }> { const { imageUrl, traitsUrl, nftStorageToken, extraAssets } = options ?? {}; const tokenNameValidator = new StringValidator() @@ -434,6 +434,10 @@ export class SftMinter extends Minter { chainID: this.chainID }); - return mintTx; + return { + imageUrl: imageOnIpfsUrl, + metadataUrl: metadataOnIpfsUrl, + tx: mintTx + }; } }