useWaitForTransaction unusual behavior using hash & wait config #491
Unanswered
YannikSood
asked this question in
Q&A
Replies: 1 comment
-
This is the write function btw:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using useWaitForTransaction like so:
Using the hash config, onSettled logs fine.
However, if I comment out the hash config, and just use the wait config instead, I get the following error:
The problem is, I need to use the wait config. Using the wait config adds additional properties to the TransactionReciept. From the ethers docs:
My write function emits an event, and I need to get this event in the receipt. So, the wait configuration not working in useWaitForTransaction is very inconvenient.
I am using wagmi version ^0.4.1. I have used an older version that worked fine with the same logic, but after having to update wagmi due to using RainbowKit, the latest version has caused this problem. Can anyone help me solve this?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions