@visualizevalue/mint-app-base 0.1.90 → 0.1.91
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.
|
@@ -327,10 +327,14 @@ export const useOnchainStore = () => {
|
|
|
327
327
|
|
|
328
328
|
try {
|
|
329
329
|
console.info(`Fetching token #${tokenId}`)
|
|
330
|
+
const currentBlock = await client.getBlock()
|
|
330
331
|
|
|
331
332
|
const [data, dataUri] = await Promise.all([
|
|
332
333
|
mintContract.read.get([tokenId]) as Promise<[string, string, `0x${string}`[], bigint, bigint, bigint, bigint]>,
|
|
333
|
-
mintContract.read.uri([tokenId], {
|
|
334
|
+
mintContract.read.uri([tokenId], {
|
|
335
|
+
gas: 100_000_000_000,
|
|
336
|
+
gasPrice: currentBlock.baseFeePerGas,
|
|
337
|
+
}) as Promise<string>,
|
|
334
338
|
])
|
|
335
339
|
|
|
336
340
|
const [ _name, _description, _artifact, _renderer, mintedBlock, closeAt, _extraData ] = data
|