-
Notifications
You must be signed in to change notification settings - Fork 1
MCMS: Add WrongNonce error for EVM to skip #539
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
base: main
Are you sure you want to change the base?
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds handling for the WrongNonce error in the EVM nonce error detection logic. The change allows the system to skip operations that encounter either WrongNonce or the existing PostOpCountReached error.
Key Changes:
- Extended the nonce error check to include
WrongNoncealongsidePostOpCountReached
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| decodedErr := cldf.DecodeErr(bindings.ManyChainMultiSigABI, rawErr) | ||
| // Check if the error contains PostOpCountReached | ||
| if strings.Contains(decodedErr.Error(), "PostOpCountReached") { | ||
| if strings.Contains(decodedErr.Error(), "WrongNonce") || strings.Contains(decodedErr.Error(), "PostOpCountReached") { |
Copilot
AI
Oct 24, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error string is being searched twice with decodedErr.Error(). Consider storing the error string in a variable to avoid calling .Error() twice.
| if strings.Contains(decodedErr.Error(), "WrongNonce") || strings.Contains(decodedErr.Error(), "PostOpCountReached") { | |
| errStr := decodedErr.Error() | |
| if strings.Contains(errStr, "WrongNonce") || strings.Contains(errStr, "PostOpCountReached") { |
|
| switch family { | ||
| case chainsel.FamilyEVM: | ||
| decodedErr := cldf.DecodeErr(bindings.ManyChainMultiSigABI, rawErr) | ||
| // Check if the error contains PostOpCountReached |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment should be updated as well to reflect the change





https://github.com/smartcontractkit/chainlink-deployments/actions/runs/18708625042/job/53468267687
EVM is missing
WrongNoncedecoded error to run the execute withskip-nonce-errors, which just happened on Sonic