Provide direct links to all referenced code in GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept.
At ModuleRegistry.setSlingshot(), old slingshot adress is saved to variable oldAdress. oldAdress is only used to emit the change of slingshot adress. It is not required to save the oldAdress to a variable.
L71-73:
Handle
0x0x0x
Vulnerability details
Impact
Gas optimization
Proof of Concept
Provide direct links to all referenced code in GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept.
At ModuleRegistry.setSlingshot(), old slingshot adress is saved to variable oldAdress. oldAdress is only used to emit the change of slingshot adress. It is not required to save the oldAdress to a variable. L71-73:
Recommended Mitigation Steps
Replace with:
Tools Used
Manual analysis