First Flight #12: Kitty Connect

First Flight #12: Kitty Connect
Beginner FriendlyFoundryNFTGameFi
100 EXP
View results
Submission Details
Severity: low
Invalid

Using `require` instead of custom errors, leads to gas inefficiency.

Description

All of the error handling in the KittyConnect contract is done using the require function. Since Solidity v0.8.4, custom reverts were presented, which are more gas efficient than using require.

Impact

Leads to spending more gas than necessary.

Tools Used

Manual Review

Recommendations

Read about custom errors in this solidity blog, and rewrite them with the new syntax.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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