Conversation
|
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. |
app/components/UI/Bridge/components/BridgeTokenSelector/BridgeTokenSelector.tsx
Show resolved
Hide resolved
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsThe changes are focused on the Bridge functionality within the MetaMask Mobile app:
The E2E test
This test will validate that the changes to network/token selection in the bridge flow work correctly. The changes don't affect other areas like accounts, confirmations, identity, or network management outside of the bridge context. |
|



Description
Changes network filtering logic to only filter the source networks.
Also includes several minor fast follow changes.
Changelog
CHANGELOG entry: Changed swaps network filtering logic to only filter source networks
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
selectSourceChainRanking(filters by user-configured networks) andselectDestChainRanking(returns all chains) replacingselectEnabledChainRanking; updates usage inBridgeTokenSelectorandNetworkPills.TokenSelectorTypeenum across component and hooks; adjusts logic fordestinitialization andnoFeehandling; passestypetoNetworkPills.BalancesByAssetIdnow keyed byCaipAssetType; normalizes EVM asset IDs to lowercase; updatesuseTokensWithBalancesaccordingly.BRIDGE_API_BASE_URLfor popular/search token endpoints.Written by Cursor Bugbot for commit 81f11c2. This will update automatically on new commits. Configure here.