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

L-3: Using calldata instead of memory in enterRaffle function

Summary

LOW-3: Consider using calldata instead of memory in the exterRaffle function parameter.

Vulnerability Details

Calldata would both decrease the gas cost and ensure that the input array of values is not being tampered with as calldata are immutable.

Impact

User experience, trust

Tools Used

Static analysis

Recommendations

Use calldata to save gas cost and guarantee that the input values are not being changed

Updates

Lead Judging Commences

patrickalphac Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Gas optimizations

Support

FAQs

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