DatingDapp

AI First Flight #6
Beginner FriendlyFoundrySolidityNFT
EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

`LikeRegistry::Like` Struct is Never Used, Wasting Gas On Deployment

LikeRegistry::Like Struct is Never Used, Wasting Gas On Deployment

Description

The LikeRegistry::Like struct is never used.

// Root cause in the codebase with @> marks to highlight the relevant section
contract LikeRegistry is Ownable {
@> struct Like {
address liker;
address liked;
uint256 timestamp;
}

Risk

Likelihood: n/a
Impact: Waste of gas and increases codebase unnecessarily

Recommended Mitigation

Simply remove this struct.

contract LikeRegistry is Ownable {
- struct Like {
- address liker;
- address liked;
- uint256 timestamp;
- }
Updates

Lead Judging Commences

ai-first-flight-judge Lead Judge 1 day ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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

Give us feedback!