-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: [CL-007] [QS-13] add invalidateDeferredValidationInstallNonce to native selectors check #282
Conversation
Summary by OctaneNew ContractsNo new contracts were added in this PR. Updated Contracts
🔗 Commit Hash: 07e5c19 |
Contract sizes: | Contract | Runtime Size (B) | Initcode Size (B) | Runtime Margin (B) | Initcode Margin (B) |
|-------------------------------|------------------|-------------------|--------------------|---------------------|
| AccountFactory | 4,814 | 5,239 | 19,762 | 43,913 |
| AllowlistModule | 9,553 | 9,580 | 15,023 | 39,572 |
| ExecutionInstallDelegate | 5,714 | 5,760 | 18,862 | 43,392 |
-| ModularAccount | 21,973 | 28,676 | 2,603 | 20,476 |
-| NativeFunctionDelegate | 434 | 461 | 24,142 | 48,691 |
+| ModularAccount | 21,973 | 28,802 | 2,603 | 20,350 |
+| NativeFunctionDelegate | 560 | 587 | 24,016 | 48,565 |
| NativeTokenLimitModule | 4,449 | 4,476 | 20,127 | 44,676 |
| PaymasterGuardModule | 1,845 | 1,872 | 22,731 | 47,280 |
-| SemiModularAccountBytecode | 23,275 | 29,978 | 1,301 | 19,174 |
-| SemiModularAccountStorageOnly | 23,769 | 30,472 | 807 | 18,680 |
+| SemiModularAccountBytecode | 23,275 | 30,104 | 1,301 | 19,048 |
+| SemiModularAccountStorageOnly | 23,769 | 30,598 | 807 | 18,554 |
| SingleSignerValidationModule | 3,646 | 3,673 | 20,930 | 45,479 |
| TimeRangeModule | 2,000 | 2,027 | 22,576 | 47,125 |
| WebAuthnValidationModule | 7,854 | 7,881 | 16,722 | 41,271 | Code coverage:
|
Overview
Detailed findings
|
@@ -36,6 +36,7 @@ contract NativeFunctionDelegate { | |||
|| selector == uint32(IModularAccountView.getExecutionData.selector) | |||
|| selector == uint32(IModularAccountView.getValidationData.selector) | |||
// check against ModularAccount methods | |||
|| selector == uint32(ModularAccountBase.performCreate.selector); | |||
|| selector == uint32(ModularAccountBase.performCreate.selector) | |||
|| selector == uint32(ModularAccountBase.invalidateDeferredValidationInstallNonce.selector); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we also want to add isValidSignature
, executeUserOp
, and the receiver functions (IERC721Receiver.onERC721Received.selector
, IERC1155Receiver.onERC1155Received.selector
, IERC1155Receiver.onERC1155BatchReceived.selector
) to this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went ahead and did this, also refactored to no longer import IModularAccount
to make one clean block of function selectors which are all from ModularAccountBase
. Lmk what you think!
291a22b
to
07e5c19
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
No description provided.