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

Avoiding excess check for Gas Optimization

Summary

Avoiding excess check through require in the function refund(...) for Gas Optimization.

Vulnerability Details

There is no need to check if the playerAddress != address(0) as in the line before it is already checking if the playerAddress == msg.sender.

Impact

  • Increased Gas Cost

Tools Used

Manual Review

Recommendations

Will recommend to avoid that check.

Updates

Lead Judging Commences

Hamiltonite Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Gas optimizations

Support

FAQs

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