fix: limit smart account nav to entropy and simple accounts#40487
Merged
fix: limit smart account nav to entropy and simple accounts#40487
Conversation
Contributor
✨ Files requiring CODEOWNER review ✨🔑 @MetaMask/accounts-engineers (4 files, +79 -17)
|
Contributor
Builds ready [193e922]
⚡ Performance Benchmarks
🌐 Dapp Page Load BenchmarksCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
|
Contributor
Builds ready [170440b]
⚡ Performance Benchmarks
🌐 Dapp Page Load BenchmarksCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚀 Bundle size reduced!]
|
mathieuartu
approved these changes
Feb 27, 2026
montelaidev
approved these changes
Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Update navigation condition to only allow "Entropy" and "Simple" accounts to access the Smart Account page.
Changelog
CHANGELOG entry: limit smart account navigation to entropy and simple accounts
Related issues
Fixes: #40276
Fixes: https://consensyssoftware.atlassian.net/browse/MUL-1501
Manual testing steps
Screenshots/Recordings
Before
Check #40276
After
Screen.Recording.2026-02-27.at.10.52.37.AM.mov
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Changes route/UI gating for the Smart Account flow based on keyring type; a mismatch in keyring metadata or selectors could incorrectly hide/deny access for some accounts.
Overview
Limits Smart Account (EIP-7702) setup to supported keyrings only by introducing
KEYRING_TYPES_SUPPORTING_7702(hd,simple) and using it to gate the “Setup Smart Account” row onMultichainAccountDetailsPage.Adds a guard in
SmartAccountPageto redirect back (and render nothing) when the selected account’s keyring type does not support EIP-7702, preventing direct URL access for hardware/snap accounts; updates/extends unit tests and adjusts the Jest console baseline accordingly.Written by Cursor Bugbot for commit 170440b. This will update automatically on new commits. Configure here.