Replies: 1 comment 1 reply
-
very curious if you were able to resolve this, @wslyvh ! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I upgraded Wagmi, CLI and Viem to their latest version on my existing boilerplate project.
But when I try to
wagmi generate
it generates invalid type conversions for watchContractEvent.Disabling watchContractEvent in wagmiConfig generated a valid ABI file.
Here's a short snippet
Conversion of type '{ address?:
0x${string}
|0x${string}
[] | undefined; chainId?: number | undefined; eventName?: InferEventName<TAbi, TEventName> | undefined; abi: readonly [{ ...; }, ... 20 more ..., { ...; }]; }' to type 'WatchContractEventConfig<TAbi, TEventName>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.Type '{ address?:
0x${string}
|0x${string}
[] | undefined; chainId?: number | undefined; eventName?: InferEventName<TAbi, TEventName> | undefined; abi: readonly [{ ...; }, ... 20 more ..., { ...; }]; }' is not comparable to type 'Pick<WatchContractEventParameters<TAbi, TEventName>, "address" | "abi" | "eventName">'.Types of property 'abi' are incompatible.
And the upgrade commit
wslyvh/nexth@a8cf7d2
Versions
viem: 1.12.2
wagmi: 1.4.2
cli: 1.5.2
ts 5.2.2
Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions