Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Electron committed Dec 19, 2023
1 parent 8efb808 commit 132ff8b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/sdk/examples/create_nft_collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ async function main() {
.substring(2, 5)
.replace(/[0-9]/g, '')
.toUpperCase();
const dateNow = Date.now();
const collection = await https(Build5.TEST)
.project(projectAPIKey)
.dataset(Dataset.COLLECTION)
Expand All @@ -27,7 +28,7 @@ async function main() {
body: {
name: collectionName + ' collection',
description: collectionName + ' collection description',
availableFrom: Date.now(),
availableFrom: dateNow,
access: 0,
category: 'COLLECTIBLE',
bannerUrl:
Expand All @@ -52,7 +53,7 @@ async function main() {
.replace(/[0-9]/g, '')
.toUpperCase();
nftLists.push({
availableFrom: availableFrom,
availableFrom: dateNow,
collection: collection.uid,
description: nftName + ' description',
media:
Expand Down

0 comments on commit 132ff8b

Please sign in to comment.