diff --git a/packages/nextjs/app/debug/_components/contract/ReadOnlyFunctionForm.tsx b/packages/nextjs/app/debug/_components/contract/ReadOnlyFunctionForm.tsx index 4aca5677..cc6d167e 100644 --- a/packages/nextjs/app/debug/_components/contract/ReadOnlyFunctionForm.tsx +++ b/packages/nextjs/app/debug/_components/contract/ReadOnlyFunctionForm.tsx @@ -1,7 +1,6 @@ "use client"; import { useState } from "react"; -import { InheritanceTooltip } from "./InheritanceTooltip"; import { Abi } from "abi-wan-kanabi"; import { Address } from "@starknet-react/chains"; import { @@ -12,7 +11,6 @@ import { getParsedContractFunctionArgs, transformAbiFunction, } from "~~/app/debug/_components/contract"; -import { notification } from "~~/utils/scaffold-stark"; import { AbiFunction } from "~~/utils/scaffold-stark/contract"; import { BlockNumber } from "starknet"; import { useContractRead } from "@starknet-react/core"; @@ -36,7 +34,7 @@ export const ReadOnlyFunctionForm = ({ ); const [result, setResult] = useState(); - const { isFetching, refetch } = useContractRead({ + const { isLoading, isFetching, refetch } = useContractRead({ address: contractAddress, functionName: abiFunction.name, abi: [...abi], @@ -85,9 +83,9 @@ export const ReadOnlyFunctionForm = ({ const { data } = await refetch(); setResult(data); }} - disabled={isFetching} + disabled={!isLoading && isFetching} > - {isFetching && ( + {!isLoading && isFetching && ( )} Read 📡 diff --git a/packages/nextjs/scaffold.config.ts b/packages/nextjs/scaffold.config.ts index 9d010910..b57feb3a 100644 --- a/packages/nextjs/scaffold.config.ts +++ b/packages/nextjs/scaffold.config.ts @@ -8,7 +8,7 @@ export type ScaffoldConfig = { }; const scaffoldConfig = { - targetNetworks: [chains.devnet], + targetNetworks: [chains.sepolia], // Only show the Burner Wallet when running on devnet onlyLocalBurnerWallet: false, rpcProviderUrl: process.env.NEXT_PUBLIC_PROVIDER_URL || "",