Don't load array element twice #121
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
G (Gas Optimization)
Handle
pmerkleplant
Vulnerability details
Using a local variable instead of loading an array element twice circumvents
a second array boundary check and saves gas.
Therefore, the following functions could be refactored by using a local
variable for the array element:
The text was updated successfully, but these errors were encountered: