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

Missing of the emit for an event when the ram is selected

Summary

In the function 'selectRamIfNotSelcted' in the contract 'ChoosingRam' there should be the emit of an event in the case where the variable 'isRamSelected' becomes true and 'selectedRam' is assigned to a new value.

Impact

The users of the protocol might not know (in a fast way) when the ram is selected and which is the ram.
This emit is essential for the protocol.

Tools Used

Manual review

Recommendations

Just add a line of code in the bottom of the function:

emit RamIsNowSelected(address ram);
Updates

Lead Judging Commences

bube Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Info/Gas/Invalid according to docs

Support

FAQs

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