diff --git a/packages/nextjs/components/scaffold-eth/Contract/ContractReadMethods.tsx b/packages/nextjs/components/scaffold-eth/Contract/ContractReadMethods.tsx index a5a87f84..95c43aff 100644 --- a/packages/nextjs/components/scaffold-eth/Contract/ContractReadMethods.tsx +++ b/packages/nextjs/components/scaffold-eth/Contract/ContractReadMethods.tsx @@ -1,5 +1,6 @@ +import { AugmentedAbiFunction } from "./ContractUI"; import { ReadOnlyFunctionForm } from "./ReadOnlyFunctionForm"; -import { Abi, AbiFunction } from "abitype"; +import { Abi } from "abitype"; import { XMarkIcon } from "@heroicons/react/24/outline"; import { Contract, ContractName, GenericContract, InheritedFunctions } from "~~/utils/scaffold-eth/contract"; @@ -15,7 +16,7 @@ export const ContractReadMethods = ({ } const functionsToDisplay = ( - ((deployedContractData.abi || []) as Abi).filter(part => part.type === "function") as AbiFunction[] + ((deployedContractData.abi || []) as Abi).filter(part => part.type === "function") as AugmentedAbiFunction[] ) .filter(fn => { const isQueryableWithParams = @@ -41,7 +42,7 @@ export const ContractReadMethods = ({ return ( <> {functionsToDisplay.map(({ fn, inheritedFrom }) => ( -
+
@@ -100,15 +95,15 @@ export const MethodSelector = ({