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

Start initial work on ERC4337 interface and helpers #4991

Draft
wants to merge 49 commits into
base: master
Choose a base branch
from

Conversation

Amxx
Copy link
Collaborator

@Amxx Amxx commented Apr 4, 2024

Fixes #????

PR Checklist

  • Tests
  • Documentation
  • Changeset entry (run npx changeset add)

Copy link

changeset-bot bot commented Apr 4, 2024

🦋 Changeset detected

Latest commit: 003c232

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 force-pushed the erc4337/interfaces-and-helpers branch from e7f9dbd to a1532d0 Compare April 5, 2024 13:04
Comment on lines +22 to +28
function _tryUseNonce(address owner, uint256 keyNonce) internal returns (bool) {
return _tryUseNonce(owner, uint192(keyNonce >> 64), uint64(keyNonce));
}

function _tryUseNonce(address owner, uint192 key, uint64 nonce) internal virtual returns (bool) {
return _useNonce(owner, key) == nonce;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note: these function are not available in the current Nonces contract. They are usefull if you want to revert with an error that you control (required in ERC-4337 entrypoints)

Amxx and others added 3 commits April 12, 2024 15:31
@Amxx Amxx force-pushed the erc4337/interfaces-and-helpers branch from 1489281 to 30c2d12 Compare April 29, 2024 10:40
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.

None yet

1 participant