Skip to content

Commit 428d944

Browse files
committed
feat: bump version to 0.0.7-alpha.5 and add trackImageUrl to BuildMusicNFTResult
1 parent 45d6b3c commit 428d944

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aithranetwork/sdk-aithra-toolkit",
3-
"version": "0.0.7-alpha.4",
3+
"version": "0.0.7-alpha.5",
44
"description": "The Aithra Network Toolkit SDK for the agents",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",

src/core/manager.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export interface BuildMusicNFTResult {
5252
assetIds: string[];
5353
animationUrl: string;
5454
trackUrl: string;
55+
trackImageUrl: string;
5556
}
5657

5758
export class AithraManager {
@@ -215,6 +216,7 @@ export class AithraManager {
215216
const animationUrl = animationResult.unwrap();
216217

217218
const trackUrl = `https://gateway.lighthouse.storage/ipfs/${uploadResult.unwrap()[0].hash}`;
219+
const trackImageUrl = `https://gateway.lighthouse.storage/ipfs/${uploadResult.unwrap()[1].hash}`;
218220

219221
// 6. Generate and upload NFT metadata
220222
const nftConfig: MusicNFTConfig = {
@@ -302,7 +304,8 @@ export class AithraManager {
302304
success: true,
303305
assetIds: mintResult.unwrap(),
304306
animationUrl: animationUrl,
305-
trackUrl: trackUrl
307+
trackUrl: trackUrl,
308+
trackImageUrl:trackImageUrl
306309
});
307310
}
308311

0 commit comments

Comments
 (0)