[CloseSea] 지갑연결 버튼
·
팀프로젝트/close_sea
지갑 연결 버튼 컴포넌트 import React from "react"; const ConnectWalletBtn = ({ setAccount }) => { const getRequestAccount = async () => { const [account] = await window.ethereum.request({ method: "eth_requestAccounts", }); return account; }; const connectWallet = async () => { const account = await getRequestAccount(); setAccount(account); localStorage.setItem("account", account); window.ethereum.on("acco..