chore: add logs to identify root cause of issue reported in #1507#8414
Conversation
|
E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/15387c84-0c0e-4bf5-aaa7-5ce939e16650 |
|
I believe yes, but I just want to check with you! |
|
I think we'll need to patch the keyring controller as well, since it calls |
|
Thanks @Gudahtt! I think it's safe to just comment out the line, I'll run some test on my end to verify it. Let me know what you think |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #8414 +/- ##
==========================================
- Coverage 41.06% 41.04% -0.02%
==========================================
Files 1247 1247
Lines 30351 30363 +12
Branches 2963 2964 +1
==========================================
Hits 12464 12464
- Misses 17142 17154 +12
Partials 745 745 ☔ View full report in Codecov by Sentry. |
@metamask/preferences-controller patch|
@tommasini I believe that too but I have not checked it yet. I'm still researching the issue and have not tested the current code of this PR. |
This reverts commit 09fc240.
I think you're right, I'll try and verify this as best I can later though |
|
@gantunesr I've taken another look, and I definitely think that Could you update this PR again when you get the chance, and I can review it again? |
|
Sure @Gudahtt, I just now returned to work on this code, but why is that? The next 2 lines updates the identities array to the accounts fetched from |
|
That method is replacing the existing vault with a new one, so it is supposed to replace all identities as well, as part of that process. Not sure if that answers the question; could you clarify which part seems confusing if not? |
|
Right, I was under the impression that it would replace a repeated identity with a new one, but in reality it keeps the old one so it's right to clean |
…to chore/add-guard-logic-patch
|
@Gudahtt I decided to revert the patches because I was unsure of the impact. The |
|


Description
This PR add logs help to collect more metrics in Sentry and provide more insights regarding the root cause of the issue described in https://github.com/MetaMask/mobile-planning/issues/1507.
Related issues
Relates to https://github.com/MetaMask/mobile-planning/issues/1507
Manual testing steps
There should not be any impact in the UI/UX. The goal of this PR is to detect possible edge cases in the app where the
selectedAddressis not set.Screenshots/Recordings
There should not be any impact in the UI/UX
Pre-merge author checklist
Pre-merge reviewer checklist