File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,9 @@ Set up your providers in `app/providers.tsx`:
8888"use client";
8989
9090import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
91- import { type ReactNode, useState, useEffect } from "react";
91+ import { type ReactNode, useState } from "react";
9292import { Web3AuthProvider } from "@web3auth/modal/react";
9393import { WagmiProvider } from "@web3auth/modal/react/wagmi";
94- import { MetaMaskSDK } from "@metamask/sdk";
9594
9695type Props = {
9796 children: ReactNode;
@@ -100,22 +99,6 @@ type Props = {
10099export function Providers({ children }: Props) {
101100 const [queryClient] = useState(() => new QueryClient());
102101
103- useEffect(() => {
104- if (typeof window === "undefined") return;
105-
106- const MMSDK = new MetaMaskSDK({
107- dappMetadata: {
108- name: "MetaMask Web3Auth Integration",
109- url: window.location.href,
110- },
111- });
112-
113- const ethereum = MMSDK.getProvider();
114- if (ethereum) {
115- window.ethereum = ethereum as unknown as IEthereum;
116- }
117- }, []);
118-
119102 return (
120103 <Web3AuthProvider
121104 config={{
You can’t perform that action at this time.
0 commit comments