add change account event listener

This commit is contained in:
RcleydsonR
2022-11-16 01:29:06 -03:00
parent 097837ddee
commit fefebcf91e
3 changed files with 12 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
import ethers from "../utils/ethers";
const connectMetaMask = () => {
ethers.getProvider().then((web3Provider) => {
ethers.connectProvider().then((web3Provider) => {
console.log(web3Provider);
});
};