BalanceHandler.sol:getBalanceStorage()
: store
is used only once and shouldn't get cached
#125
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
Dravee
Vulnerability details
Impact
Increased gas cost
Proof of Concept
store
is a variable used only once. A comment should suffice instead of a variable (see @Audit-Info):Tools Used
VS Code
Recommended Mitigation Steps
Do not store this data in a variable. Inline it instead:
The text was updated successfully, but these errors were encountered: