connectWallet
The connectWallet
function is used to connect to a crypto wallet such as Metamask.
When the function is executed, the following processing is performed
request a connection to Metamask
set up the chain when it is connected
save the account and chainId in the cookie
reload and update the connected_wallet object with the cookie
Last updated