Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

The `_safeMint` function does not emit a Mint event, making it harder for external systems to track the creation of new horse NFTs.

Vulnerability Report: Lack of Event Emission in _safeMint()

Impact

The _safeMint function does not emit a Mint event, making it harder for external systems to track the creation of new horse NFTs.

Proof of Concept

// In HorseStore.sol
// Original existing code snippet in _safeMint()
function mintHorse() external {
_safeMint(msg.sender, totalSupply());
}

Tools Used

  • Manual code analysis

Recommended Mitigation Steps

To mitigate the lack of event emission in _safeMint(), include the necessary event emission after successfully minting a new horse. Emitting events enhances transparency and allows external systems to track and react to important contract events.

Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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