From af34ca82712b55b5206ce6f64d26302c69074fbe Mon Sep 17 00:00:00 2001 From: Mateusz Sekara Date: Wed, 6 Mar 2024 13:55:08 +0100 Subject: [PATCH] Fix --- core/services/ocr2/plugins/ccip/ccipexec/ocr2.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/services/ocr2/plugins/ccip/ccipexec/ocr2.go b/core/services/ocr2/plugins/ccip/ccipexec/ocr2.go index 69886321e7e..f369fa72d29 100644 --- a/core/services/ocr2/plugins/ccip/ccipexec/ocr2.go +++ b/core/services/ocr2/plugins/ccip/ccipexec/ocr2.go @@ -849,8 +849,8 @@ func (r *ExecutionReportingPlugin) ShouldAcceptFinalizedReport(ctx context.Conte lggr.Errorw("Unable to decode report", "err", err) return false, err } - if err := r.armChainState.ValidateNotCursed(ctx); err != nil { - return false, err + if err1 := r.armChainState.ValidateNotCursed(ctx); err1 != nil { + return false, err1 } lggr = lggr.With("messageIDs", ccipcommon.GetMessageIDsAsHexString(execReport.Messages)) @@ -878,8 +878,8 @@ func (r *ExecutionReportingPlugin) ShouldTransmitAcceptedReport(ctx context.Cont lggr.Errorw("Unable to decode report", "err", err) return false, nil } - if err := r.armChainState.ForceValidateNotCursed(ctx); err != nil { - return false, err + if err1 := r.armChainState.ForceValidateNotCursed(ctx); err1 != nil { + return false, err1 } lggr = lggr.With("messageIDs", ccipcommon.GetMessageIDsAsHexString(execReport.Messages))