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