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

refactor: handle account management methods instead of syncing accounts #115

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

danroc
Copy link
Contributor

@danroc danroc commented Sep 25, 2023

This PR is a refactor of how the account management methods are handled. Instead of simply syncing all the snap accounts everytime an account is added, removed, or updated, the keyring will handle each one of the event individually.

The keyring state is also updated to store the snap ID next to the account object, and thus making them closer tied.

Copy link
Member

@gantunesr gantunesr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments. LGTM

src/SnapKeyring.ts Show resolved Hide resolved
src/SnapKeyring.ts Show resolved Hide resolved
src/SnapKeyring.ts Show resolved Hide resolved
@gantunesr gantunesr added the team-accounts This should be handled by the Accounts Team label Sep 26, 2023
Copy link
Contributor

@montelaidev montelaidev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@danroc danroc merged commit bf60ee8 into main Sep 26, 2023
@danroc danroc deleted the feature/fix-removal branch September 26, 2023 12:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
team-accounts This should be handled by the Accounts Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants