Open code423n4 opened 2 years ago
Acknowledged, but this forces a solidity optimization that usually (but not always) happens. Would rather keep it in-line. Instead, I'll span it over multiple lines.
emit OwnershipProposed(
owner,
pendingOwner = newOwner_
);
Relevant line-spanning was done in the release candidate contracts.
Handle
StErMi
Vulnerability details
Impact
No direct impact on the risk factor but it could lead to possible developers mistake in the future and for sure make the code less readable for auditors / external developers.
Because this approach does not comes with
Gas Optimization
there's not real reason to adopt it.Code like this
at first glance seems to not modify the state and you need to pay more attention to read all the changes.
Proof of Concept
Tools Used
Manual
Recommended Mitigation Steps
Avoid inline style code