From 787b91222a14537be4fb2a44035a7eaa3a4a996d Mon Sep 17 00:00:00 2001 From: IsaccoSordo Date: Tue, 7 May 2024 11:56:00 +0200 Subject: [PATCH] fix: remove async --- src/docs/guides/migration-guide.mdx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/docs/guides/migration-guide.mdx b/src/docs/guides/migration-guide.mdx index 5745c0e8..4cc7c0bf 100644 --- a/src/docs/guides/migration-guide.mdx +++ b/src/docs/guides/migration-guide.mdx @@ -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(); ```