Skip to content

Commit

Permalink
feat: return urls in mint
Browse files Browse the repository at this point in the history
  • Loading branch information
damienen committed May 14, 2024
1 parent 4d76bbb commit bec7bea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 6 additions & 2 deletions src/sft-minter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export class SftMinter extends Minter {
nftStorageToken?: string;
extraAssets?: string[];
}
): Promise<Transaction> {
): Promise<{ imageUrl: string; metadataUrl: string; tx: Transaction }> {
const { imageUrl, traitsUrl, nftStorageToken, extraAssets } = options ?? {};

const tokenNameValidator = new StringValidator()
Expand Down Expand Up @@ -434,6 +434,10 @@ export class SftMinter extends Minter {
chainID: this.chainID
});

return mintTx;
return {
imageUrl: imageOnIpfsUrl,
metadataUrl: metadataOnIpfsUrl,
tx: mintTx
};
}
}

0 comments on commit bec7bea

Please sign in to comment.