Christmas Dinner

First Flight #31
Beginner FriendlyFoundrySolidity
100 EXP
View results
Submission Details
Severity: low
Invalid

Lack of Validation For _newHost Equality

Summary

The function changeHost does not check if _newHost is the same as the current host. This allows unnecessary state changes and event emissions, leading to wasted gas and potential confusion.

Impact

  • Wasted gas

  • Potential confusion for users

Tools Used

Manual review

Recommendations

Add a condition to ensure _newHost is different from the curent host

Updates

Lead Judging Commences

0xtimefliez Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
0xtimefliez 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.