Skip to content

Conversation

@robriks
Copy link
Contributor

@robriks robriks commented Dec 15, 2023

Added support for smart contract signers in both isValidSignature() and validateUserOp() for all contracts inheriting from AccountRails

Improved readability and gas optimization by converting isValidSignature() parameter to calldata, which allows for slicing rather than memory operations in assembly. This is not strictly outlined by the spec which defines the signature parameter in memory but more modern implementations use calldata for better efficiency and no tradeoff in usability since the function isn't called internally.

Also added test cases to show smart contract signers. Will add one last commit to handle the offset introduced by the validator flag and then should be good to merge after review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants