-
Notifications
You must be signed in to change notification settings - Fork 619
[Dashboard] Fix validation for smart account options #7522
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
[Dashboard] Fix validation for smart account options #7522
Conversation
Co-authored-by: joaquim.verges <[email protected]>
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe update adds a new validation rule requiring Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant AuthOptionsForm
participant ValidationSchema
User->>AuthOptionsForm: Submit form
AuthOptionsForm->>ValidationSchema: Validate fields
alt useSmartAccount=true AND executionMode="EIP4337" AND accountFactoryType="custom"
ValidationSchema->>AuthOptionsForm: Require customAccountFactoryAddress (non-empty)
alt customAccountFactoryAddress missing
ValidationSchema->>User: Show error "Please enter a custom account factory address."
else customAccountFactoryAddress present
ValidationSchema->>AuthOptionsForm: Continue validation
end
else
ValidationSchema->>AuthOptionsForm: Continue validation
end
AuthOptionsForm->>User: Return validation result
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (3)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (8)
✨ 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 (
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7522 +/- ##
=======================================
Coverage 51.96% 51.96%
=======================================
Files 952 952
Lines 64224 64224
Branches 4239 4238 -1
=======================================
Hits 33377 33377
Misses 30740 30740
Partials 107 107
🚀 New features to boost your workflow:
|
size-limit report 📦
|
PR-Codex overview
This PR enhances the validation logic in the
AuthOptionsFormcomponent to ensure that a custom account factory address is provided when certain conditions are met. It specifically checks for theEIP4337execution mode and the custom account factory type.Detailed summary
customAccountFactoryAddressis provided when:useSmartAccountis trueexecutionModeis "EIP4337"accountFactoryTypeis "custom"useSmartAccountto includeexecutionModein the main logic.Summary by CodeRabbit