T09 · Insecure Skill Coding Practices
- Location
scripts/mint-paid.mjs:123- Finding
Paid mint transactions bypass the mandatory 24-hour cooldown
- Content
View full analysis
p.phaseId === preview.phaseId); if (!target) return { skipped: true, reasons: ['phase not found'], preview }; const allowlist = await fetchMintAllowlistProof(config.siteUrl, target.info.merkleRoot, config.wallet); if (!allowlist) return { skipped: true, reasons: ['not on allowlist'], preview }; const maxPayment = await resolveMaxPayment(client, config, target, quantity); const [nonce, paramsHash] = await Promise.all([ client.readContract({ address: config.minter, abi: minterAbi, functionName: 'mintNonce', args: [getAddress(config.wallet)], }), client.readContract({ address: config.minter, abi: minterAbi, functionName: 'mintParamsHash', args: [target.phaseId, quantity, maxPayment], }), ]); const { tickets, signatures } = await requestRandomnessTickets(config, { nonce, paramsHash, phaseId: target.phaseId, phase: target.info, quantity, maxPayment, }); const walletClient = createWalletClient({ account, ch ...[truncated 3286 chars]- Remediation
View remediation
