Skip to content

Conversation

@simsonraj
Copy link

@simsonraj simsonraj commented Oct 24, 2025

https://github.com/smartcontractkit/chainlink-deployments/actions/runs/18708625042/job/53468267687

EVM is missing WrongNonce decoded error to run the execute with skip-nonce-errors, which just happened on Sonic

@Copilot Copilot AI review requested due to automatic review settings October 24, 2025 09:09
@simsonraj simsonraj requested review from a team as code owners October 24, 2025 09:09
@changeset-bot
Copy link

changeset-bot bot commented Oct 24, 2025

⚠️ No Changeset found

Latest commit: efc2ad7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

Copilot AI left a 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 WrongNonce alongside PostOpCountReached

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") {
Copy link

Copilot AI Oct 24, 2025

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.

Suggested change
if strings.Contains(decodedErr.Error(), "WrongNonce") || strings.Contains(decodedErr.Error(), "PostOpCountReached") {
errStr := decodedErr.Error()
if strings.Contains(errStr, "WrongNonce") || strings.Contains(errStr, "PostOpCountReached") {

Copilot uses AI. Check for mistakes.
@simsonraj simsonraj changed the title Add WrongNonce error for EVM to skip MCMS: Add WrongNonce error for EVM to skip Oct 24, 2025
@cl-sonarqube-production
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

switch family {
case chainsel.FamilyEVM:
decodedErr := cldf.DecodeErr(bindings.ManyChainMultiSigABI, rawErr)
// Check if the error contains PostOpCountReached
Copy link
Collaborator

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

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.

3 participants