-
-
Notifications
You must be signed in to change notification settings - Fork 821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Unable to send transaction with 0 as nonce #382
Comments
After a bit a digging, looks like if I force
|
This seems to affect more than just the nonce. If you set any of the values to zero the problem is the same. Changing the check to |
This will definitely fix the issue but maybe not the right way ? The fact that |
The rlp/hex encoding is working correctly because if you encode 0 it should always be |
This issue has been locked since it has been closed for more than 14 days. If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Viem version. If you have any questions or comments you can create a new discussion thread. |
Is there an existing issue for this?
Package Version
0.3.2
Current Behavior
When using a newly created privateKey with funds directly sent to it using a faucet, I'm unable to send any transaction due to the following error:
Tested only polygon mumbai
Expected Behavior
We should be able to send a transaction to the chain even if it's the wallet first transaction
Steps To Reproduce
Link to Minimal Reproducible Example (StackBlitz, CodeSandbox, GitHub repo etc.)
https://stackblitz.com/edit/viem-getting-started-xatmau?file=index.ts
Anything else?
Forcing the transaction to have a different nonce will result in successfully retrieving a hash. The transaction will never make it to the blockchain as it's awaiting a transaction with a
0
as nonce value first if I'm right.Thank you for the great library !
The text was updated successfully, but these errors were encountered: