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({