fix: hide swap gas sponsorship banner for hardware wallets#29896
fix: hide swap gas sponsorship banner for hardware wallets#29896dawnseeker8 wants to merge 1 commit into
Conversation
Prevent swap quote sponsorship UI from rendering for hardware wallets, including sponsored-quote and insufficient-balance fallback paths, to align MON/SEI behavior with hardware wallet constraints. Co-authored-by: Cursor <cursoragent@cursor.com>
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Why SmokeSwap: The change directly affects the Bridge/Swap flow UI — specifically the gas-sponsored banner that appears during swap/bridge quote flows. This is core swap functionality. Why SmokeConfirmations: Per the SmokeSwap tag description, when selecting SmokeSwap, also select SmokeConfirmations since transaction confirmations are part of the swap/bridge flow. No other tags needed: The change is isolated to a single hook within the Bridge UI. It doesn't touch navigation, account management, network selection, snaps, identity, or any other feature area. The Risk is low: This is an additive guard condition (adds Performance Test Selection: |
|
Will recreate one using metamask template format. |
Summary
Test plan
yarn jest app/components/UI/Bridge/hooks/useShouldRenderGasSponsoredBanner/index.test.tsRelated issue
Made with Cursor