-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: cp-12.12.0 bring back exception if invalid address passed in eth_accounts #30213
Merged
+730
−558
Conversation
This file contains 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
jiexi
reviewed
Feb 7, 2025
jiexi
reviewed
Feb 7, 2025
jiexi
reviewed
Feb 7, 2025
jiexi
reviewed
Feb 7, 2025
jiexi
reviewed
Feb 7, 2025
jiexi
reviewed
Feb 7, 2025
❌ API Spec Test Failed. View the report here. |
❌ API Spec Test Failed. View the report here. |
Builds ready [84df286]
Page Load Metrics (1743 ± 70 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [6a7ef36]
Page Load Metrics (1725 ± 42 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [7a9a4a3]
Page Load Metrics (1515 ± 45 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Manually validated |
jiexi
approved these changes
Feb 11, 2025
itsyoboieltr
approved these changes
Feb 11, 2025
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
release-12.13.0
Issue or pull request that will be included in release 12.13.0
team-wallet-api-platform
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.
This commit fixes the following issue which is currently a release blocker for v12.12.0
The eth accounts and permitted chains caveat validation in this PR was originally removed as part of the CAIP-25 Permission Migration PR here, but is being restored in order to fix a regression in the API behavior. Originally, making a wallet_requestPermissions request with invalid caveat values for eth_accounts or endowment:permitted-chains would result in an immediate error returned back to the dapp specifying which value was invalid, i.e. not found in the wallet. This PR restores that behavior.
Additionally, the changes in this PR are temporary and will be removed as part of a follow up refactor that cleans up the CAIP-25 approval/request permission flow.
Description
Related issues
Fixes:
Manual testing steps
Unlock MM
Open test dapp console
Paste the following command
See error
Screenshots/Recordings
Before
After
Screen.Recording.2025-02-07.at.19.54.15.mov
Pre-merge author checklist
Pre-merge reviewer checklist