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

refactor: sync all accounts on snap notificaiton #36

Merged
merged 13 commits into from
Jun 28, 2023

Conversation

danroc
Copy link
Contributor

@danroc danroc commented Jun 27, 2023

No description provided.

@danroc danroc force-pushed the feature/dont-fail-sync branch 4 times, most recently from 8ae393a to 30f7992 Compare June 27, 2023 21:58
@danroc danroc force-pushed the feature/dont-fail-sync branch from 97ba479 to 5b872e6 Compare June 28, 2023 07:05
@danroc danroc force-pushed the feature/dont-fail-sync branch from 96dce97 to 4ff1b8c Compare June 28, 2023 07:28
@danroc danroc changed the title fix: continue account synchronization on errors fix: don't sync accounts on updates Jun 28, 2023
@danroc danroc changed the title fix: don't sync accounts on updates refactor: sync all accounts on snap notificaiton Jun 28, 2023
@montelaidev montelaidev merged commit 48fce12 into main Jun 28, 2023
@montelaidev montelaidev deleted the feature/dont-fail-sync branch June 28, 2023 12:54
danroc added a commit that referenced this pull request Sep 7, 2023
* chore: don't fail account sync

* fix: fix `update`, `create`, and `delete` account methods

* feat: schedule accounts sync after keyring creation or deserialization

* fix: let the snap call back to remove the account from maps

* feat: sync accounts after deserialization

* fix: don't sync on deserialization since snaps don't seem to be ready

* chore: make `getAccounts()` async

* chore: make `syncAccounts()` public

* refactor: sync all accounts on snap update

* fix: always use lower case addresses in the maps

* fix: normalize addresses on deserialization

* test: update unit tests

* chore: update unit test
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.

2 participants