feat: add selector helpers#29625
Conversation
Co-authored-by: Francis Nepomuceno <n3ps@users.noreply.github.com>
Co-authored-by: Francis Nepomuceno <n3ps@users.noreply.github.com>
Co-authored-by: Francis Nepomuceno <n3ps@users.noreply.github.com>
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Key findings from investigation:
Since these selectors have no consumers yet and no existing code was modified, there is no user-facing behavior change that requires E2E validation. No E2E test tags are needed. Performance Test Selection: |
|



Description
Create selectors to be used for the Accounts v4 API migration of the Activity list
Part of breaking down the PR into smaller chunks
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Low risk: adds two small selectors and unit tests without changing existing selection logic or mutating state. Main risk is minor formatting/edge cases when converting hex chain IDs to CAIP strings.
Overview
Adds
selectEvmAddressto return the currently selected account address only when the selected internal account is EVM (otherwiseundefined).Adds
selectEvmEnabledCaipNetworksto expose enabled EVM networks as CAIP chain IDs by converting the hexeip155chain IDs returned fromselectEVMEnabledNetworksinto decimal CAIP strings, with focused unit tests for both selectors.Reviewed by Cursor Bugbot for commit c7dac4b. Bugbot is set up for automated code reviews on this repo. Configure here.