Rock Paper Scissors

First Flight #38
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: low
Invalid

Unoptimized Storage Access

Description: Throughout the contract where Game struct is accessed. Multiple storage reads of the same Game struct in different functions.

Impact: Increased gas costs due to repeated storage access.

Proof of Concept:

// Multiple storage reads in different functions
Game storage game = games[_gameId];

Recommended Mitigation: Cache frequently accessed storage variables in memory.

Updates

Appeal created

m3dython Lead Judge about 2 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Informational

Code suggestions or observations that do not pose a direct security risk.

Gas Optimization

Support

FAQs

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