-
Notifications
You must be signed in to change notification settings - Fork 3
always fetch latest nonce for 7702 authorizations #20
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
Conversation
WalkthroughThe changes update the nonce parameter in the authorization signing flow from a 256-bit integer to a 64-bit unsigned integer, simplifying nonce handling. In addition, the EIP-7702 executor now fetches the nonce asynchronously from the chain provider, introducing a new error variant for nonce fetch failures and encapsulating nonce retrieval in a helper function. Changes
Sequence Diagram(s)sequenceDiagram
participant Executor
participant ChainProvider
participant Signer
Executor->>ChainProvider: get_eoa_nonce(address)
ChainProvider-->>Executor: nonce (u64) or error
alt Nonce fetch successful
Executor->>Signer: sign_authorization(options, chain_id, address, nonce, credentials)
Signer-->>Executor: SignedAuthorization
else Nonce fetch error
Executor-->>Executor: Handle NonceFetchError
end
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (6)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
Bug Fixes
New Features
Refactor