Skip to content

Commit

Permalink
feat: mass mint with attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarsen136 committed Dec 18, 2024
1 parent 9e3b444 commit 703f9b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions components/massmint/EditPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
<CustomAttributeInput
v-model="tags"
:max="10"
default-open
/>
</NeoField>
<NeoField
Expand Down
2 changes: 1 addition & 1 deletion components/massmint/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export type NFTToMint = {
file: File
description?: string
price?: number
attributes?: OpenSeaAttribute[]
tags?: OpenSeaAttribute[]
}

export type NFTS = { [id: string]: NFT }
2 changes: 1 addition & 1 deletion composables/massmint/massMintHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const createTokensToMint = (
nft.price === undefined ? 0 : nft.price * Math.pow(10, decimals.value),
nsfw: false,
postfix: true,
tags: Array.isArray(nft.attributes) ? nft.attributes : [],
tags: Array.isArray(nft.tags) ? nft.tags : [],
}))
}
export const subscribeToCollectionLengthUpdates = (collectionId: string) => {
Expand Down

0 comments on commit 703f9b1

Please sign in to comment.