Closed code423n4 closed 1 year ago
^ above change I did on two of the contracts on Infinitism repo and ran their gas calcs to generate report. here is the PR diff view. https://github.com/eth-infinitism/account-abstraction/pull/177/files
does not seem like it's doing any gas savings, in-fact increases usage for most cases.
livingrockrises requested judge review
on += COSTS MORE GAS THAN = + FOR STATE VARIABLES
I replace and getting below compilation error
`SyntaxError: Use of unary + is disallowed.
at (contracts/core/EntryPoint.sol:556)
actualGas =+ preGas - gasleft();
TypeError: Unary operator + cannot be applied to type uint256.
livingrockrises marked the issue as sponsor confirmed
confirmed for long revert strings. Shift Right/Left instead of Division/Multiplication - potentially will be acknowledged
gzeon-c4 marked the issue as grade-c
See the markdown file with the details of this report here.