There comes a moment when an unexpected error arises and fails to establish a connection with your wallet.
if (window.ethereum) {
console.log("11")
const connect = async () => {
const account = await window.ethereum.request({
method: "eth_requestAccounts",
})
console.log("account:", account) //nothing
}
connect()
console.log("22")
}
}
}
In the console, I see: "11" "22"
I have attempted various solutions like reinstalling Chrome, refreshing the page, clearing cache...however, none of them seem to resolve this issue.