Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Comments in draft report
In a few functions, if an address is a contract, the transaction is reverted.
This behavior can be seen in the depositFor(), setSigner(), and setFeeCollector() functions.
The isContract() function uses extcodesize, and returns true if the address has any code in it. However, this code is bypassable by a contract that performs all its’ operations in the constructor and does not contain any runtime code.
After taking a look at the Entrypoint contract and how it handles withdrawing funds to these addresses, we were unable to find any security impact from allowing these addresses to be con- tracts. Therefore, we are marking this finding as informational in impact.
However, since this means the check is somewhat unnecessary, we note that it does increase gas usage.
Recommendations
Remove the isContract() checks unless there is a valid reason for them to be there.
Change Type
Checklist
Additional Information
Branch Naming