Open code423n4 opened 1 year ago
The issue USING STORAGE INSTEAD OF MEMORY FOR STRUCTS/ARRAYS SAVES GAS
is not valid for most of the cases listed. The optimisation does not apply if all values in the storage are read or if the value is already in memory / calldata.
The optimisation is only valid if we load a struct from storage into memory but do not use all of the struct fields.
kirk-baird marked the issue as grade-b
See the markdown file with the details of this report here.