Fetching events from a contract write #80
-
Hello, I'm quite new with wagmi. I'm using wagmi version 0.1.4. So I want to fetch an event emitted in a transaction from useContractWrite. I used useContractEvent and followed the example on the docs, but I'm getting a runtime error (TypeError: contract_.on is not a function) on node_modules\wagmi\dist\wagmi.esm.js (920:49). The code that I wrote looks like this :
Is there something that I'm missing? |
Beta Was this translation helpful? Give feedback.
Answered by
tmm
Jan 15, 2022
Replies: 1 comment
-
Thanks for reporting! Created an issue (#81) and fixed in this commit. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tmm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for reporting! Created an issue (#81) and fixed in this commit.