Closed code423n4 closed 2 years ago
Duplicate of #36 since both issues deal with unnecessary initializations. Hence, the issue is the same even if the instances mentioned in both places are different. Two of the instances in mocks were not part of the audit scope as mentioned in the contest readme
Handle
0x0x0x
Vulnerability details
Concept
When a variable is declared solidity assigns the default value. In case the contract assigns the value again, it costs extra gas.
Example:
uint x = 0
costs more gas thanuint x
without having any different functionality.Scope