Skip to content

Commit

Permalink
fix: remove async
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaccoSordo committed May 7, 2024
1 parent be89cc2 commit 787b912
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/docs/guides/migration-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,10 @@ const wallet = new BeaconWallet({ name: "Beacon Docs Taquito" });
Tezos.setWalletProvider(wallet);

// 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);
},
);
wallet.client.subscribeToEvent(BeaconEvent.ACTIVE_ACCOUNT_SET, (account) => {
// An active account has been set, update the dApp UI
console.log(`${BeaconEvent.ACTIVE_ACCOUNT_SET} triggered: `, account);
});

const permissions = await wallet.client.requestPermissions();
```
Expand Down

0 comments on commit 787b912

Please sign in to comment.