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

Improperly utilized Events

Summary

Events are a way for smart contracts to communicate information to external consumers or user interfaces.

Vulnerability Details

The SetNetPassword event is emitted every time a password is set. However, this event does not provide any information to external consumers.

event SetNetPassword();
function setPassword(string memory newPassword) external {
s_password = newPassword;
emit SetNetPassword();
}

Impact

Tools Used

VS code.

Recommendations

Remove SetNetPassword Event.

function setPassword(string memory newPassword) external {
s_password = newPassword;
}
Updates

Lead Judging Commences

inallhonesty Lead Judge
almost 2 years ago
inallhonesty Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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