-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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
base: master
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: d4bdf5a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
e7f9dbd
to
a1532d0
Compare
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; | ||
} |
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.
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)
Co-authored-by: Ernesto García <[email protected]>
1489281
to
30c2d12
Compare
Fixes LIB-1237
Fixes LIB-1236
Fixes LIB-1231
Fixes LIB-1230
Fixes LIB-1229
Fixes LIB-1228
Fixes LIB-1227
PR Checklist
npx changeset add
)