Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Decouple Virtual Wallet Discovery in get-starknet #280

Merged
merged 4 commits into from
Dec 9, 2024

Conversation

khanti42
Copy link
Contributor

@khanti42 khanti42 commented Dec 5, 2024

Decouple Virtual Wallet Discovery in get-starknet

Summary

This PR introduces a discoverVirtualWallets method to handle virtual wallet discovery asynchronously, decoupling it from the synchronous GetStarknet() function.

Changes

  • Added discoverVirtualWallets for explicit async virtual wallet discovery.
  • Refactored initiateVirtualWallets to avoid redundant hasSupport calls.

Why

Users can still call GetStarknet() with the current fire-and-forget behavior. However, this change allows developers to ensure the async discovery process is completed before calling GetStarknet() synchronously, giving more control over the workflow.

@fracek fracek merged commit 187bf96 into starknet-io:develop Dec 9, 2024
1 check passed
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.

3 participants