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

@fuels/react - create connectAsync method on usConnectUI #52

Open
luizstacio opened this issue Feb 23, 2024 · 0 comments
Open

@fuels/react - create connectAsync method on usConnectUI #52

luizstacio opened this issue Feb 23, 2024 · 0 comments

Comments

@luizstacio
Copy link
Member

With usConnect users are able to chose between a connectAsync or connect this is useful when applications want to integrate the connection of a wallet in the middle of a specific flow. One example is the sway-playground where the connection is integrated on the flow of the deploy.

But currently usConnectUI does not support a async connect method. We should create a new method and all the logic to support connectAsync also on the connect ui.

On this Task;

  • Implement connectAsync for usConnectUI
  • Once users trigger connectAsync it should resolve;
  • If user selects a wallet and connects return true;
  • If user selects a wallet but a error happens reject with error;
  • If user closes the Connector Selection UI resolves to false;
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

No branches or pull requests

2 participants