fix: missing plasma flag filter#11361
Conversation
📝 WalkthroughWalkthroughA feature flag gate for Plasma is added to the PluginProvider's supported chains logic. When PlasmaMainnet is detected, the chain returns false if the Plasma feature flag is disabled, following the existing pattern used for other chains. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
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 (6)**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{tsx,jsx}📄 CodeRabbit inference engine (.cursor/rules/error-handling.mdc)
Files:
**/*.{js,jsx,ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/naming-conventions.mdc)
Files:
**/*.{jsx,tsx}📄 CodeRabbit inference engine (.cursor/rules/react-best-practices.mdc)
Files:
**/*.tsx📄 CodeRabbit inference engine (.cursor/rules/react-best-practices.mdc)
Files:
🧠 Learnings (4)📓 Common learnings📚 Learning: 2025-11-24T21:20:04.979ZApplied to files:
📚 Learning: 2025-11-24T21:20:04.979ZApplied to files:
📚 Learning: 2025-10-23T14:27:19.073ZApplied to files:
⏰ 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). (2)
🔇 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 |
Description
Added missing Plasma feature flag filter in
PluginProvider.tsxto excludePlasmaMainnetfromsupportedChainswhen the Plasma feature flag is disabled.When the Plasma chain was recently added, the implementation included the feature flag and plugin, but the corresponding filter in
PluginProvider.tsxwas missing. This caused a runtime error because:PlasmaMainnetwas still included insupportedChains(no filter excluded it)chain adapter not found for chain id eip155:9745Issue (if applicable)
Unblocks current release: https://discord.com/channels/554694662431178782/1448483680094912633/1448496038368247880
Risk
Low Risk - This is a one-line addition that follows the exact same pattern as all other feature-flagged chains in the same file. The change simply adds the missing guard for Plasma that was already in place for Optimism, Polygon, Gnosis, Monad, BSC, etc.
None. This fix only affects the feature flag gating logic and prevents an error when Plasma is disabled.
Testing
Engineering
When
VITE_FEATURE_PLASMA=falsewe should have no runtime errors.Operations
We should have no runtime errors in release (where the plasma flag is off)
Screenshots (if applicable)
N/A - This is a bug fix with no UI changes.
Note
Add missing Plasma feature flag check to exclude
KnownChainIds.PlasmaMainnetfromsupportedChainswhen disabled.Written by Cursor Bugbot for commit f6e730a. This will update automatically on new commits. Configure here.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.