Last active
October 28, 2024 13:10
-
-
Save SpiralOutDotEu/0f4b951142649bb88638c7cd59b7531b to your computer and use it in GitHub Desktop.
window ethereum not found
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
// src/react-app-env.d.ts | |
// for ethers v6 | |
/// <reference types="react-scripts" /> | |
import { BrowserProvider, Eip1193Provider } from "ethers/types/providers"; | |
declare global { | |
interface Window { | |
ethereum: Eip1193Provider & BrowserProvider; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment