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

[beacon-wallet] Update the README file (and documentation) to include an ACTIVE_ACCOUNT_SET listener #2908

Closed
AlexandrosGounis opened this issue Apr 9, 2024 · 0 comments · Fixed by #2910
Assignees
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@AlexandrosGounis
Copy link

The latest versions of @airgap/beacon-sdk require an additional listener (ACTIVE_ACCOUNT_SET) that emits events when users switch accounts or disconnect their address on the wallet side.

The README.md file (in packages/taquito-beacon-wallet/README.md) needs to match Beacon's documentation (see taquito tab) which includes the following:

// Listen for all the active account changes
wallet.client.subscribeToEvent(
  BeaconEvent.ACTIVE_ACCOUNT_SET,
  async (account) => {
    // An active account has been set, update the dApp UI
    console.log(`${BeaconEvent.ACTIVE_ACCOUNT_SET} triggered: `, account);
  },
);
@AlexandrosGounis AlexandrosGounis added the bug Something isn't working label Apr 9, 2024
@dsawali dsawali added documentation Improvements or additions to documentation and removed bug Something isn't working labels Apr 9, 2024
@dsawali dsawali added this to the v20 milestone Apr 9, 2024
@dsawali dsawali self-assigned this Apr 9, 2024
@ac10n ac10n moved this to Done in Taquito Dev Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants