Created
April 14, 2022 00:48
-
-
Save MCarlomagno/ab6ac15a6a9e94e56b952df53373a054 to your computer and use it in GitHub Desktop.
This file contains 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 requestAccounts() { | |
if(typeof window === "undefined") return; | |
return window | |
.ethereum?.request({ method: "eth_requestAccounts" }) | |
.catch((err: any) => console.log(err)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment