feat: Default predict withdraw token from last used selection or from feature flags#27532
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. |
f31a227 to
c56e198
Compare
Signed-off-by: dan437 <80175477+dan437@users.noreply.github.com>
Signed-off-by: dan437 <80175477+dan437@users.noreply.github.com>
c56e198 to
0775e87
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Signed-off-by: dan437 <80175477+dan437@users.noreply.github.com>
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: No changes were made to Engine initialization order, messenger configuration, or other controllers (e.g., NetworkController, KeyringController). The modifications appear scoped to selector logic and confirmation pay token behavior, meaning the blast radius is limited to transaction confirmation flows rather than wallet-wide functionality. SmokeConfirmations covers:
This provides sufficient coverage to validate selector changes and automatic pay token behavior without unnecessarily running unrelated suites (accounts, network management, trade, etc.). Performance Test Selection: |
|
|
✅ E2E Fixture Validation — Schema is up to date |




Description
This PR updates Predict withdraw token auto-selection to prefer the user’s most recent withdraw destination token before falling back to the remote preferred token configuration.
Changelog
CHANGELOG entry: Updated Predict withdraw to default to the user’s last used destination token before falling back to the remote preferred token.
Related issues
Fixes: MetaMask-planning#7081
Manual testing steps
Screenshots/Recordings
Before
N/A
After
Pre-selected token from the last withdraw:

Pre-selected token from feature flags:

Pre-merge author checklist
Pre-merge reviewer checklist