Skip to content

Commit

Permalink
fix: useScaffoldWatchContractEvent logs args types (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
rin-st authored May 7, 2024
1 parent 6a2221b commit 0f9d9db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/nextjs/utils/scaffold-eth/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,9 @@ export type UseScaffoldEventConfig<
>,
> = {
contractName: TContractName;
eventName: TEventName;
} & IsContractDeclarationMissing<
Omit<UseWatchContractEventParameters, "onLogs" | "address" | "abi"> & {
Omit<UseWatchContractEventParameters, "onLogs" | "address" | "abi" | "eventName"> & {
onLogs: (
logs: Simplify<
Omit<Log<bigint, number, any>, "args" | "eventName"> & {
Expand All @@ -225,7 +226,7 @@ export type UseScaffoldEventConfig<
>[],
) => void;
},
Omit<UseWatchContractEventParameters<ContractAbi<TContractName>>, "onLogs" | "address" | "abi"> & {
Omit<UseWatchContractEventParameters<ContractAbi<TContractName>>, "onLogs" | "address" | "abi" | "eventName"> & {
onLogs: (
logs: Simplify<
Omit<Log<bigint, number, false, TEvent, false, [TEvent], TEventName>, "args"> & {
Expand Down

0 comments on commit 0f9d9db

Please sign in to comment.