Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: medium
Invalid

Missing Batch Minting Implementation Despite Documentation Claims

Summary

The documentation states that the minting contract should support batch minting; however, no batch minting functionality is implemented. While functions like addNewBatch and currentBatchSize exist, there is no mechanism to mint multiple NFTs in a single transaction.

Vulnerability Details

function addNewBatch(uint256 _batchSize) public override onlyOwner {
if (_batchSize == 0) revert RAACNFT__BatchSize();
currentBatchSize += _batchSize;
}

Issue

  • The contract includes batch-related state variables but lacks a corresponding batchMint function.

  • Users must call the mint function multiple times

  • Inconsistent with project documentation

Impact

  • Discrepancy between contract behavior and documentation

Tools Used

Manual code review and documentation cross-reference.

Recommendations

Implement a batchMint function to allow users to mint multiple NFTs at once:

function batchMint(uint256[] calldata tokenIds, uint256[] calldata amounts) external {
require(tokenIds.length == amounts.length, "Mismatched input lengths");
for (uint256 i = 0; i < tokenIds.length; i++) {
mint(tokenIds[i], amounts[i]);
}
}

This ensures efficiency, improves user experience, and aligns the contract with its documented features.

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!