fix: rpcIdentifierUtility client side grouping before emitting CustomRPC event#26266
Merged
fix: rpcIdentifierUtility client side grouping before emitting CustomRPC event#26266
rpcIdentifierUtility client side grouping before emitting CustomRPC event#26266Conversation
…due to privacy concerns
Contributor
|
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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #26266 +/- ##
========================================
Coverage 70.12% 70.12%
========================================
Files 1428 1429 +1
Lines 50089 50102 +13
Branches 13894 13895 +1
========================================
+ Hits 35120 35130 +10
- Misses 14969 14972 +3 ☔ View full report in Codecov by Sentry. |
Collaborator
Builds ready [47d0752]
Page Load Metrics (459 ± 358 ms)
Bundle size diffs
|
Collaborator
Builds ready [16fc788]
Page Load Metrics (66 ± 19 ms)
Bundle size diffs
|
…due to privacy concerns
16fc788 to
1783cff
Compare
…MetaMask/metamask-extension into fix/mmassets-298_capture-custom-rpc-url
Collaborator
Builds ready [816a642]
Page Load Metrics (158 ± 179 ms)
Bundle size diffs
|
bergeron
reviewed
Aug 14, 2024
ui/pages/settings/networks-tab/networks-form/use-safe-chains.ts
Outdated
Show resolved
Hide resolved
Collaborator
Builds ready [6ab96a4]
Page Load Metrics (224 ± 238 ms)
Bundle size diffs
|
Member
Author
|
Re-requesting after merging |
Collaborator
Builds ready [c601154]
Page Load Metrics (440 ± 339 ms)
Bundle size diffs
|
legobeat
approved these changes
Aug 15, 2024
Collaborator
Builds ready [f2604af]
Page Load Metrics (1254 ± 541 ms)
Bundle size diffs
|
|
salimtb
approved these changes
Aug 16, 2024
Collaborator
Builds ready [b19fa22]
Page Load Metrics (357 ± 300 ms)
Bundle size diffs
|
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
Rather than arbitrarily sending
sha256hashes over the wire, we should instead handle the lookup/grouping of custom rpcs client-side, and then send over the meaningful resource identifiers of commonly used.Benefits are:
rpcIdentifierUtilityshould only return the rpc host when there's a match (not for private eth nodes, for instance)Note:
useSafeChainshook is inspired by to be merged implementation hereRelated issues
Fixes: MMASSETS-298
Manual testing steps
sensitivePropertiesonce network gets addedScreenshots/Recordings
N/A UX behavior should be the same
Pre-merge author checklist
Pre-merge reviewer checklist