-
Notifications
You must be signed in to change notification settings - Fork 198
fix: ledger select chains handle flags #11269
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
Temporarily disable these chain flags in .env.development to prevent errors when accessing Ledger wallet with chains that don't have full adapter support. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Make Ledger supported chains respect SUI and TRON feature flags. Only include these chains in availableLedgerAppAssetIds when their corresponding feature flags are enabled. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This reverts commit 19cb42c.
📝 WalkthroughWalkthroughModified the Ledger constants to conditionally include SUI and TRON asset IDs based on feature flag configuration. Previously, both assets were always included in the available Ledger app asset IDs array; now their inclusion depends on Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5–10 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (3)**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{js,jsx,ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/naming-conventions.mdc)
Files:
🧠 Learnings (13)📓 Common learnings📚 Learning: 2025-11-20T12:00:45.005ZApplied to files:
📚 Learning: 2025-11-24T21:20:04.979ZApplied to files:
📚 Learning: 2025-11-24T21:20:04.979ZApplied to files:
📚 Learning: 2025-11-24T21:20:57.909ZApplied to files:
📚 Learning: 2025-11-24T21:20:04.979ZApplied to files:
📚 Learning: 2025-10-23T14:27:19.073ZApplied to files:
📚 Learning: 2025-08-29T18:09:45.982ZApplied to files:
📚 Learning: 2025-11-05T23:37:30.632ZApplied to files:
📚 Learning: 2025-09-12T10:21:26.693ZApplied to files:
📚 Learning: 2025-11-24T21:20:57.909ZApplied to files:
📚 Learning: 2025-11-24T21:20:57.909ZApplied to files:
📚 Learning: 2025-09-04T17:29:59.479ZApplied to files:
🧬 Code graph analysis (1)src/context/WalletProvider/Ledger/constants.ts (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Yeeting to cherry-pick into release. |
Description
Does what it says on the box - app crashing currently when said flags are off
Issue (if applicable)
N/A
Risk
Ledger wallet chain selection
Testing
Engineering
Operations
🏁 My feature is behind a flag and doesn't require operations testing (yet)
confirm ledger doesn't crash when opening the select chains modal
Screenshots (if applicable)
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.