Fix nonce synchronization issues in EVM deployments by adding slow flag to forge#647
Merged
Fix nonce synchronization issues in EVM deployments by adding slow flag to forge#647
Conversation
dvgui
previously approved these changes
Jun 30, 2025
kcsongor
requested changes
Jun 30, 2025
Contributor
kcsongor
left a comment
There was a problem hiding this comment.
If this issue only comes up for cetain chain, we should only add it for those chains, in order to not unnecessarily slow down deployments for other chains. AFAIK the fast-path works reliably everywhere else, right?
Contributor
Contributor
|
I agree a |
Contributor
Author
|
Added helper function that add slow flag only if Mezo is used as a hardcoded value. |
kcsongor
approved these changes
Jul 9, 2025
nvsriram
approved these changes
Jul 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
EVM deployments were failing with nonce errors on certain networks (e.g. Mezo) due to forge sending transactions too quickly without waiting for confirmation between transactions.
Example error:
server returned an error response: error code -32000: invalid nonce; got 3, expected 2: invalid sequence: invalid sequenceAdded --slow flag to forge script commands in both
deployEvmandupgradeEvmfunctions. This flag forces forge to wait for transaction confirmation before sending the next one, ensuring proper nonce synchronization.