Skip to content

Commit

Permalink
Merge pull request kodadot#10325 from hassnian/issue-10308
Browse files Browse the repository at this point in the history
fix: Mass mint wrong pricing
  • Loading branch information
prury authored May 20, 2024
2 parents 795603c + 90d8cd7 commit e9a3a5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion composables/massmint/massMintHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ export const createTokensToMint = (
nfts: NFTToMint[],
collection: MintedCollection,
): TokenToMint[] => {
const { decimals } = useChain()
return nfts.map((nft) => ({
file: nft.file,
name: nft.name,
description: nft.description || '',
edition: 1,
secondFile: null,
selectedCollection: collection,
price: nft.price === undefined ? 0 : nft.price * Math.pow(10, 12),
price:
nft.price === undefined ? 0 : nft.price * Math.pow(10, decimals.value),
nsfw: false,
postfix: true,
tags: [],
Expand Down

0 comments on commit e9a3a5e

Please sign in to comment.