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

Fixing possible race condition #406

Merged
merged 1 commit into from
May 15, 2024
Merged

Conversation

mutantcornholio
Copy link
Contributor

If two transactions use getNonce() at the same time, they'll get
basically the same promise instance, which resolves to the same nonce.
With this change, all consecutive getNonce() calls will return
different promise instances, with the increment preformed.

If two transactions use `getNonce()` at the same time, they'll get
basically the same promise instance, which resolves to the same nonce.
With this change, all consecutive `getNonce()` calls will return
different promise instances, with the increment preformed.
@mutantcornholio mutantcornholio requested a review from a team as a code owner May 15, 2024 11:43
@mutantcornholio mutantcornholio merged commit 7062ef5 into main May 15, 2024
9 checks passed
@mutantcornholio mutantcornholio deleted the yuri/fix-possible-rc branch May 15, 2024 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants