Repository navigation
fix(token-selector): show sell network panel for Rabby with Safe imported - #7890
Conversation
|
@tenderdeve is attempting to deploy a commit to the cow-dev Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe token selector’s chain panel now uses network-selector visibility to determine sell-field availability, replacing smart-contract-wallet-specific gating while preserving the existing YIELD feature-flag behavior. ChangesChain panel gating
Estimated code review effort: 2 (Simple) | ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
@tenderdeve , please rebase the PR to develop |
kernelwhisperer
left a comment
There was a problem hiding this comment.
Awesome, thank you!
|
Hey @tenderdeve , could you please now resolve conflicts? :) |
…rted The sell (input) network panel was hidden for any smart-contract wallet, which also covered Rabby when a Safe account is imported. That check is inconsistent with the main network selector and with useChainsToSelect, both of which use useShouldHideNetworkSelector and only hide network switching for wallets actually locked to a single chain (Safe app / Safe via WC), not Rabby. Use the same hook here so the panel is shown.
603d0d8 to
ec0b53b
Compare
|
@elena-zh I rebased it |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@kernelwhisperer , thank you so much! I will review it soon then |
Closes #7292
When connecting with Rabby using an imported Safe account, the sell token selector did not show the networks panel.
The sell (input) chain panel in
useChainPanelStatewas gated onuseIsSmartContractWallet, which is true for Rabby whenever a Safe is imported. That is inconsistent with the rest of the app: both the main network selector (useShouldHideNetworkSelector) anduseChainsToSelectonly hide network switching for wallets that are actually locked to a single chain (Safe app / Safe via WalletConnect), and explicitly keep it enabled for Rabby.This switches the panel gate to the same
useShouldHideNetworkSelectorhook, so the sell networks panel is shown for Rabby+Safe while remaining hidden for a real Safe app / Safe via WC.Summary by CodeRabbit