From 4985cf950f33f93c43cbe1c01ee1dde60bc87a72 Mon Sep 17 00:00:00 2001 From: george-dorin Date: Thu, 14 Nov 2024 16:29:43 +0200 Subject: [PATCH] Implement feedback --- core/services/ocrcommon/transmitter.go | 4 ++-- core/services/relay/evm/contract_transmitter.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/services/ocrcommon/transmitter.go b/core/services/ocrcommon/transmitter.go index 3602a74eed9..d162dd68067 100644 --- a/core/services/ocrcommon/transmitter.go +++ b/core/services/ocrcommon/transmitter.go @@ -3,6 +3,7 @@ package ocrcommon import ( "context" errors2 "errors" + "fmt" "math/big" "net/url" "slices" @@ -229,8 +230,7 @@ type ocr2FeedsDualTransmission struct { func (t *ocr2FeedsDualTransmission) CreateEthTransaction(ctx context.Context, toAddress common.Address, payload []byte, txMeta *txmgr.TxMeta) error { // Primary transmission errPrimary := t.transmitter.CreateEthTransaction(ctx, toAddress, payload, txMeta) - errPrimary = errors.Wrap(errPrimary, "skipped primary transmission") - + errPrimary = fmt.Errorf("skipped primary transmission: %w", errPrimary) if txMeta == nil { txMeta = &txmgr.TxMeta{} } diff --git a/core/services/relay/evm/contract_transmitter.go b/core/services/relay/evm/contract_transmitter.go index 6b9ad3df24b..aead9f6ca8a 100644 --- a/core/services/relay/evm/contract_transmitter.go +++ b/core/services/relay/evm/contract_transmitter.go @@ -12,6 +12,7 @@ import ( "github.com/ethereum/go-ethereum/common" gethcommon "github.com/ethereum/go-ethereum/common" "github.com/pkg/errors" + "github.com/smartcontractkit/libocr/offchainreporting2plus/chains/evmutil" ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2plus/types"