Created
April 14, 2022 00:47
-
-
Save MCarlomagno/312261d69a1b9cc0f878211fa13f16a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async fetchAccounts() { | |
if(typeof window === "undefined") return; | |
return window | |
.ethereum?.request({ method: "eth_accounts" }) | |
.catch((err: any) => console.log(err)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment