Description:
If a local variable is declared inside a function, and it's only used within a single function call, it is recommended to declare it as memory
, and not as storage
, since the latter option will modify the contract's storage, therefore increasing gas costs.
Tools Used:
Manual review
Recommended Mitigation:
It is recommended to change the variable declaration to memory
.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.