From ec1cd1b6b7c8a38ad0c643c1f21ce89d29c9c6ad Mon Sep 17 00:00:00 2001 From: port <108868128+portdeveloper@users.noreply.github.com> Date: Sun, 7 Apr 2024 15:52:45 +0300 Subject: [PATCH] Pass undefined to AlchemyProvider (#80) --- packages/nextjs/pages/[contractAddress]/[network].tsx | 2 +- packages/nextjs/pages/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nextjs/pages/[contractAddress]/[network].tsx b/packages/nextjs/pages/[contractAddress]/[network].tsx index 1aa382ed..c0867360 100644 --- a/packages/nextjs/pages/[contractAddress]/[network].tsx +++ b/packages/nextjs/pages/[contractAddress]/[network].tsx @@ -77,7 +77,7 @@ const ContractDetailPage = () => { } try { - const alchemyProvider = new AlchemyProvider(parseInt(network), scaffoldConfig.alchemyApiKey); + const alchemyProvider = new AlchemyProvider(undefined, scaffoldConfig.alchemyApiKey); const requestFunc = ({ method, params }: { method: string; params: any }) => alchemyProvider.send(method, params); const implementationAddress = await detectProxyTarget(contractAddress, requestFunc); diff --git a/packages/nextjs/pages/index.tsx b/packages/nextjs/pages/index.tsx index 1d5dc492..5141d71f 100644 --- a/packages/nextjs/pages/index.tsx +++ b/packages/nextjs/pages/index.tsx @@ -35,7 +35,7 @@ const Home: NextPage = () => { const [isCheckingContractAddress, setIsCheckingContractAddress] = useState(false); const [isContract, setIsContract] = useState(false); - const alchemyProvider = new AlchemyProvider(parseInt(network), scaffoldConfig.alchemyApiKey); + const alchemyProvider = new AlchemyProvider(undefined, scaffoldConfig.alchemyApiKey); const requestFunc = ({ method, params }: { method: string; params: any }) => alchemyProvider.send(method, params); const publicClient = usePublicClient({