You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(multichain-account-service): prevent creating EVM account during discovery (#6650)
## Explanation
Derive next address instead of creating the account entirely (which
triggers `:accountAdded` and adds side-effects for this temporary
account).
## References
N/A
## Checklist
- [ ] I've updated the test suite for new or updated code as appropriate
- [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [ ] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs),
highlighting breaking changes as necessary
- [ ] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
- This new config can be set by the clients to update discovery timeout/retry values.
15
15
16
+
### Fixed
17
+
18
+
- No longer create temporary EVM account during discovery ([#6650](https://github.com/MetaMask/core/pull/6650))
19
+
- We used to create the EVM account and remove it if there was no activity for that account. Now we're just deriving the next address directly, which avoids state mutation.
20
+
- This prevents `:accountAdded` event from being published, which also prevents account-tree and multichain-account service updates.
21
+
- Backup & sync will no longer synchronize this temporary account group, which was causing a bug that persisted it on the user profile and left it permanently.
0 commit comments