Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

feat: add new optional field in InternalAccount metadata #365

Closed

Conversation

mathieuartu
Copy link
Contributor

@mathieuartu mathieuartu commented Jul 25, 2024

UPDATE: Drafting this PR for now since there's a chance we might not need this feature ATM.

This PR adds a new optional field for InternalAccount metadata, conflictingNames.
This field will be crucial in the implementation of the new Account syncing feature (from @MetaMask/notifications ).
It will be used to temporarily store conflicting account names in the client after a successful account sync but with name conflicts. This metadata field will then be cleared when a user choses the correct account name from the UI.

Related to this Epic

Examples

This will be used by the AccountsController to get the correct InternalAccount type and get/set the new conflictingNames field when needed.

Ref: https://github.com/MetaMask/core/tree/main/packages/accounts-controller

@mathieuartu mathieuartu marked this pull request as ready for review July 26, 2024 08:40
@mathieuartu mathieuartu requested a review from a team as a code owner July 26, 2024 08:40
@mathieuartu mathieuartu marked this pull request as draft July 26, 2024 14:41
@mathieuartu mathieuartu closed this Aug 1, 2024
@mathieuartu mathieuartu deleted the feat/add_new_metadata_field_conflicting_names branch August 1, 2024 06:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant