Open code423n4 opened 2 years ago
ye0lde
A variable is being assigned its default value which is unnecessary. Removing the assignment will save gas when deploying.
https://github.com/code-423n4/2021-10-ambire/blob/bc01af4df3f70d1629c4e22a72c19e6a814db70d/contracts/Identity.sol#L9
Visual Studio Code, Remix
Remove the assignment.
resolved here: https://github.com/AmbireTech/adex-protocol-eth/commit/a21a110050bc41bfee80dd63b72205ad40b71e4a
Removing the assignment will indeed reduce deployment gas cost
The sponsor has applied the improvement
Handle
ye0lde
Vulnerability details
Impact
A variable is being assigned its default value which is unnecessary. Removing the assignment will save gas when deploying.
Proof of Concept
https://github.com/code-423n4/2021-10-ambire/blob/bc01af4df3f70d1629c4e22a72c19e6a814db70d/contracts/Identity.sol#L9
Tools Used
Visual Studio Code, Remix
Recommended Mitigation Steps
Remove the assignment.