Skip to content
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

NonceManager: fix transaction count update when sending transaction #3085

Closed
wants to merge 1 commit into from

Conversation

valentinmatter
Copy link

This PR fixes an issue that leads to reused nonces in some cases.

When passing a transaction with a defined nonce, the NonceManager uses that to set the transaction count, which leads to the same nonce being reused for the next transaction (if the nonce is n, there has been n+1 transactions)

This commit fixes an issue that leads to reused nonces in some cases. 

When passing a transaction with a defined nonce, the NonceManager uses that to set the transaction count, which leads to the same nonce being reused for the next transaction (if the nonce is `n`, there has been `n+1` transactions)
@ricmoo ricmoo added the on-deck This Enhancement or Bug is currently being worked on. label Jun 15, 2022
@ricmoo
Copy link
Member

ricmoo commented Jun 18, 2022

This should be fixed in 5.6.9. Let me know if you have any problems.

Thanks! :)

@ricmoo ricmoo closed this Jun 18, 2022
@ricmoo ricmoo added bug Verified to be an issue. fixed/complete This Bug is fixed or Enhancement is complete and published. and removed on-deck This Enhancement or Bug is currently being worked on. labels Jun 18, 2022
Woodpile37 pushed a commit to Woodpile37/ethers.js that referenced this pull request Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified to be an issue. fixed/complete This Bug is fixed or Enhancement is complete and published.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants