Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/perky-jars-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink-deployments-framework": patch
---

Add WrongNonce string to skip during Nonce errors during mcms execution
9 changes: 5 additions & 4 deletions engine/cld/legacy/cli/mcmsv2/mcms_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import (
gethtypes "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
chainsel "github.com/smartcontractkit/chain-selectors"
"github.com/smartcontractkit/chainlink-testing-framework/framework/components/blockchain"
"github.com/smartcontractkit/chainlink-testing-framework/framework/rpc"
"github.com/smartcontractkit/mcms"
"github.com/smartcontractkit/mcms/sdk"
"github.com/smartcontractkit/mcms/sdk/aptos"
Expand All @@ -33,6 +31,9 @@ import (
"go.uber.org/zap"
"go.uber.org/zap/zapcore"

"github.com/smartcontractkit/chainlink-testing-framework/framework/components/blockchain"
"github.com/smartcontractkit/chainlink-testing-framework/framework/rpc"

"github.com/smartcontractkit/chainlink-deployments-framework/pkg/logger"

suibindings "github.com/smartcontractkit/chainlink-sui/bindings"
Expand Down Expand Up @@ -1294,8 +1295,8 @@ func isNonceError(rawErr error, selector uint64) (bool, error) {
switch family {
case chainsel.FamilyEVM:
decodedErr := cldf.DecodeErr(bindings.ManyChainMultiSigABI, rawErr)
// Check if the error contains PostOpCountReached
if strings.Contains(decodedErr.Error(), "PostOpCountReached") {
// Check if the error contains PostOpCountReached / WrongNonce
if strings.Contains(decodedErr.Error(), "WrongNonce") || strings.Contains(decodedErr.Error(), "PostOpCountReached") {
return true, nil
}

Expand Down