- Check:
pess-multiple-storage-read
- Severity:
Optimization
- Confidence:
High
The detector highlights storage values which are read several times in the same function.
Assign storage value to a local variable when reading it multiple times in order to reduce gas costs.