Fixing provider state and wallet change listener, formatting balance

Co-authored-by: RcleydsonR <rafael.cleydson@gmail.com>
This commit is contained in:
brunoedcf
2022-11-16 17:15:56 -03:00
parent 85d76c9e42
commit d7f6294e6d
4 changed files with 52 additions and 34 deletions

View File

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