Skip to content

Commit

Permalink
fix: Dvr 197 wallets signing biome (#2363)
Browse files Browse the repository at this point in the history
Co-authored-by: Calvin-Lieu <[email protected]>
  • Loading branch information
proletesseract and Calvin-Lieu authored Nov 1, 2024
1 parent 8a14b8b commit dec4ee1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dec4ee1

Please sign in to comment.