Skip to content

Conversation

danroc
Copy link
Contributor

@danroc danroc commented Sep 12, 2025

This PR makes synchronous the getAccounts() method of the keyrings to ensure safe invocation within synchronous functions. Additionally, it modifies the Keyring interface to make the list of accounts readily available and prevent blocking operations inside the getAccounts() method.

BREAKING: This PR changes the signature of the getAccounts() method to make it synchronous.

@danroc danroc changed the title feat!: make getAccount() synchronous feat!: make getAccounts() synchronous Sep 12, 2025
@danroc danroc force-pushed the dr/sync-get-accounts branch from 119133f to f063652 Compare September 12, 2025 12:10
@danroc danroc force-pushed the dr/sync-get-accounts branch from f063652 to 3ef9922 Compare September 12, 2025 12:19
@danroc danroc marked this pull request as ready for review September 12, 2025 12:24
@danroc danroc requested a review from a team as a code owner September 12, 2025 12:24
cursor[bot]

This comment was marked as outdated.


expect(await keystoneKeyring.getAccounts()).toStrictEqual(
await keystoneKeyring.getAccounts(),
keyring.getAccounts(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suspect that the original tests were incorrect.

@danroc danroc closed this Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant