How to specify nonce for a "write" on a contract instance #3479
Unanswered
adrienthiery
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
First of all, thanks for the great work,
wagmi
helps us a lot in the day to day.I'm attempting to make several write requests in parallel to hardhat and some of them fail as it thinks they are replacement transactions, but that's not my goal, so I'm looking to bump the nonce manually, but can't find a way right now.
Here is the way we call the method:
I tried several things:
Pass nonce in the
options
object (seemed the most logical to me) but it just hangs.Set the nonce on the client (led there by https://viem.sh/docs/actions/test/setNonce#setnonce) but
setNonce
seems to be undefined.Now I'm out of ideas and can't find examples or documentation about the
contract.write.myFunction
options
API.Any pointers or ideas?
Thanks a lot in advance
Beta Was this translation helpful? Give feedback.
All reactions