Connect Wallet (Metamask)
Difficulty: Hard
Tags: Frontend, Fullstack, React, Ethereum, Wallet
On this challenge you are asked to implement the "Connect" button whcih is intended to connect to your Metamask wallet.
This link could be helpful for you to achieve this challenge.
We already prepared where you should put your codes, check on src/components/Connect/Context.tsx. What you have to do:
- fill the
connectfunction so that it will connect into your metamask wallet- extract the account address, set it as a state value in the context.
setState({ connected: true, account: 'the wallet address here' });- implement the
disconnectfunction
