@visualizevalue/mint-app-base 0.1.39 → 0.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
package/components/MintToken.vue
CHANGED
|
@@ -64,6 +64,8 @@ const { price, displayPrice } = useMintPrice(mintCount)
|
|
|
64
64
|
const mintRequest = computed(() => async () => {
|
|
65
65
|
const count = BigInt(props.mintCount)
|
|
66
66
|
|
|
67
|
+
const priceWithBlockBuffer = price.value * 105n / 100n
|
|
68
|
+
|
|
67
69
|
return writeContract($wagmi, {
|
|
68
70
|
abi: MINT_ABI,
|
|
69
71
|
chainId: config.public.chainId,
|
|
@@ -73,7 +75,7 @@ const mintRequest = computed(() => async () => {
|
|
|
73
75
|
props.token.tokenId,
|
|
74
76
|
count,
|
|
75
77
|
],
|
|
76
|
-
value:
|
|
78
|
+
value: priceWithBlockBuffer,
|
|
77
79
|
gas: 80_000n,
|
|
78
80
|
})
|
|
79
81
|
})
|
package/package.json
CHANGED
|
@@ -110,6 +110,11 @@ const txFlow = ref()
|
|
|
110
110
|
const txFlowKey = ref(0)
|
|
111
111
|
const minting = ref(false)
|
|
112
112
|
const mint = async () => {
|
|
113
|
+
if (! image.value) {
|
|
114
|
+
alert(`Empty image data. Please try again.`)
|
|
115
|
+
return
|
|
116
|
+
}
|
|
117
|
+
|
|
113
118
|
const artifact = toByteArray(image.value)
|
|
114
119
|
const artifactChunks = chunkArray(artifact, 4)
|
|
115
120
|
const multiTransactionPrepare = artifactChunks.length > 1
|