-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
ERC-4337 & ERC-7579 compliant modular smart accounts #4991
base: master
Are you sure you want to change the base?
Conversation
|
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]>
…nterfaces-and-helpers
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.
Fix for stack too deep: (all the following changes together)
63f1767
to
a053a8c
Compare
a053a8c
to
de032e3
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
)