Skip to main content
Share Your Experience: Take the 2024 Developer Survey
1 vote

Error Connecting to Ethereum Wallet Using ethers.js in HTML Page

Your connectWallet() function is not implemented correctly, due to which the provider is not getting initialised. Here's how it should be done: Connect Wallet: const accounts = await window.ethereum....
SYED ASAD KAZMI's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible