Eggstravaganza

First Flight #37
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: low
Invalid

Inaccurate NatSpec comment in mintEgg() __ EggstravaganzaNFT

Summary

In mintEgg function is declared external.

Vulnerability Details

The mintEgg function is documented as a public function in the NatSpec @notice comment, but it is actually declared as external. This inconsistency between the documentation and the function signature can mislead developers or auditors reviewing the contract behavior.

/// @notice Public function to mint a new Eggstravaganza NFT.
/// Only the approved game contract can mint eggs.
function mintEgg(address to, uint256 tokenId) external returns (bool) {
require(msg.sender == gameContract, "Unauthorized minter");
_mint(to, tokenId);
totalSupply += 1;
return true;
}

Impact

Mislead developers

Tools Used

Manual review

Recommendations

Update the comment to match the visibility

Updates

Lead Judging Commences

m3dython Lead Judge 3 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Natspec/Implementation

Mismatch between documentation and implementation

Support

FAQs

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