refactor: remove multichain accounts State 2 feature flag from confirmations#28136
refactor: remove multichain accounts State 2 feature flag from confirmations#28136
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. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
SmokeConfirmations is selected because:
SmokeNetworkExpansion is selected because:
The changes are test-only for some files (test updates to reflect removed mocks), but the production code changes to Performance Test Selection: |
|
✅ E2E Fixture Validation — Schema is up to date |
|




Description
Removes
selectMultichainAccountsState2Enabledselector usage from the confirmations area now that the multichain accounts State 2 / BIP-44 feature is considered stable. The legacy code path (when the flag returnedfalse) is no longer needed.Changes:
useSendScopehook to always return State 2 behavior (isBIP44: true,isSolanaOnly: false,isEvmOnly: false), removing theselectMultichainAccountsState2EnabledandselectSelectedInternalAccountselector dependencies.isBIP44branching inRecipientList-- accounts always render as BIP44-grouped list; contacts always render as flat list.isBIP44prop fromRecipientcomponent -- always displaysaccountGroupName(State 2 behavior) instead of conditionally choosing betweenaccountGroupNameandaccountName.isSolanaOnlyearly-return inuseEVMNftshook (alwaysfalseunder State 2).Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/CONF-1088
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Removes feature-flag/legacy branching in confirmation send UI and NFT hook behavior, which can change what names/lists render in edge cases. Mostly refactor/deletion, but touches user-facing recipient display and list grouping.
Overview
Confirmations no longer branch on the multichain State 2/BIP-44 feature flag. Recipient UI is simplified to always display
accountGroupName(falling back tocontactName) and drops theisBIP44prop.Send recipient lists now always group accounts by
walletName(BIP-44-style) while contact lists stay flat with a fixed "Contacts" header, and theuseSendScopehook and its tests are removed.useEVMNftsalso drops the Solana-only early-return, with tests updated/trimmed to reflect the new single-path behavior and removed selector mocks.Written by Cursor Bugbot for commit 7dceb22. This will update automatically on new commits. Configure here.