diff --git a/packages/nextjs/utils/scaffold-eth/contract.ts b/packages/nextjs/utils/scaffold-eth/contract.ts index 2c5a3e8a4..bf4580d1a 100644 --- a/packages/nextjs/utils/scaffold-eth/contract.ts +++ b/packages/nextjs/utils/scaffold-eth/contract.ts @@ -214,8 +214,9 @@ export type UseScaffoldEventConfig< >, > = { contractName: TContractName; + eventName: TEventName; } & IsContractDeclarationMissing< - Omit & { + Omit & { onLogs: ( logs: Simplify< Omit, "args" | "eventName"> & { @@ -225,7 +226,7 @@ export type UseScaffoldEventConfig< >[], ) => void; }, - Omit>, "onLogs" | "address" | "abi"> & { + Omit>, "onLogs" | "address" | "abi" | "eventName"> & { onLogs: ( logs: Simplify< Omit, "args"> & {