diff --git a/packages/nextjs/hooks/scaffold-eth/useDeployedContractInfo.ts b/packages/nextjs/hooks/scaffold-eth/useDeployedContractInfo.ts index f3828eeb1..0973af21d 100644 --- a/packages/nextjs/hooks/scaffold-eth/useDeployedContractInfo.ts +++ b/packages/nextjs/hooks/scaffold-eth/useDeployedContractInfo.ts @@ -2,7 +2,6 @@ import { useEffect, useState } from "react"; import { useIsMounted } from "usehooks-ts"; import { usePublicClient } from "wagmi"; import { useSelectedNetwork } from "~~/hooks/scaffold-eth"; -import { AllowedChainIds } from "~~/utils/scaffold-eth"; import { Contract, ContractCodeStatus, @@ -21,7 +20,7 @@ export const useDeployedContractInfo = ({ }: UseDeployedContractConfig) => { const isMounted = useIsMounted(); - const selectedNetwork = useSelectedNetwork(chainId as AllowedChainIds); + const selectedNetwork = useSelectedNetwork(chainId); const deployedContract = contracts?.[selectedNetwork.id]?.[contractName as ContractName] as Contract; const [status, setStatus] = useState(ContractCodeStatus.LOADING); const publicClient = usePublicClient({ chainId: selectedNetwork.id });