Skip to content
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

Merge account abstraction work into master #5274

Merged
merged 15 commits into from
Oct 23, 2024
Merged

Merge account abstraction work into master #5274

merged 15 commits into from
Oct 23, 2024

Conversation

Amxx
Copy link
Collaborator

@Amxx Amxx commented Oct 21, 2024

No description provided.

Copy link

changeset-bot bot commented Oct 21, 2024

🦋 Changeset detected

Latest commit: 39dc802

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openzeppelin-solidity Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Amxx Amxx added this to the 5.2 milestone Oct 21, 2024
@Amxx Amxx requested review from a team and removed request for a team October 21, 2024 15:50
}

/// @dev Returns the aggregator of the `validationData` and whether it is out of time range.
function getValidationData(uint256 validationData) internal view returns (address aggregator, bool outOfTimeRange) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to return an "in range" than an "out of range" boolean ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd agree with this change too. It feels weird the boolean is indicating an undesired state

* The `aggregator` is set to {SIG_VALIDATION_SUCCESS} if both are successful, while
* the `validAfter` is the maximum and the `validUntil` is the minimum of both.
*/
function combineValidationData(uint256 validationData1, uint256 validationData2) internal pure returns (uint256) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this function. AFAIK the original usecase is aggreagation in multisig accounts, but it may not be relevant anymore.

Feels quite opinionated. In particular, maybe if aggregator1 == aggregator2 that should be ok.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'd agree with removing it. Can we still do it now that is merged?

@Amxx Amxx merged commit 28aed34 into master Oct 23, 2024
18 checks passed
@Amxx Amxx deleted the account-abstraction branch October 23, 2024 07:19
@Amxx Amxx restored the account-abstraction branch October 23, 2024 07:19
@Amxx Amxx deleted the account-abstraction branch October 23, 2024 07:19
@Amxx Amxx restored the account-abstraction branch October 23, 2024 07:19
@Amxx Amxx deleted the account-abstraction branch October 23, 2024 07:19
@Amxx Amxx mentioned this pull request Oct 23, 2024
2 tasks
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.

3 participants