Skip to content

Commit

Permalink
add(massmint): metadataDeposit to needed amount to mint
Browse files Browse the repository at this point in the history
  • Loading branch information
hassnian committed Nov 27, 2024
1 parent 85c61a8 commit 50f1f41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/massmint/Massmint.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const router = useRouter()
const { urlPrefix } = usePrefix()
const { accountId } = useAuth()
const { selectedCollection, preselectedCollectionId, onCollectionSelected } = useCollectionDropdown()
const { itemDeposit } = useDeposit(urlPrefix)
const { itemDeposit, metadataDeposit } = useDeposit(urlPrefix)
const { decimals } = useChain()
const { transferableCurrentChainBalance } = useMultipleBalance(true)
Expand All @@ -153,7 +153,7 @@ const transactionFee = ref(0)
const isMinting = ref(false)
const mintStatus = ref('')
const neededAmount = computed(() => (itemDeposit.value * Object.keys(NFTS.value).length) + transactionFee.value)
const neededAmount = computed(() => ((itemDeposit.value + metadataDeposit.value) * Object.keys(NFTS.value).length) + transactionFee.value)
const hasEnoughBalance = computed(() => (transferableCurrentChainBalance.value ?? 0) >= neededAmount.value)
const numberOfMissingNames = computed(
Expand Down

0 comments on commit 50f1f41

Please sign in to comment.