From dec4ee19c15f98f02ecd10d6f931f2a735f7a1a1 Mon Sep 17 00:00:00 2001 From: "Craig M." Date: Fri, 1 Nov 2024 18:50:23 +1300 Subject: [PATCH] fix: Dvr 197 wallets signing biome (#2363) Co-authored-by: Calvin-Lieu --- .../wallets-signing-with-nextjs/app/sign-with-erc191/page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/passport/wallets-signing-with-nextjs/app/sign-with-erc191/page.tsx b/examples/passport/wallets-signing-with-nextjs/app/sign-with-erc191/page.tsx index 97e640c0b3..bdd437de64 100644 --- a/examples/passport/wallets-signing-with-nextjs/app/sign-with-erc191/page.tsx +++ b/examples/passport/wallets-signing-with-nextjs/app/sign-with-erc191/page.tsx @@ -43,9 +43,11 @@ export default function ConnectWithEtherJS() { // disable button while loading setLoadingState(true); + // #doc passport-wallets-nextjs-sign-erc191-request // calling eth_requestAccounts triggers the Passport login flow const accounts = await web3Provider.provider.request({ method: 'eth_requestAccounts' }); - + // #enddoc passport-wallets-nextjs-sign-erc191-request + // once logged in Passport is connected to the wallet and ready to transact setAccountsState(accounts); // enable button when loading has finished