Skip to content

Commit

Permalink
Implement feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
george-dorin committed Nov 14, 2024
1 parent e8c9963 commit 4985cf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/services/ocrcommon/transmitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package ocrcommon
import (
"context"
errors2 "errors"
"fmt"
"math/big"
"net/url"
"slices"
Expand Down Expand Up @@ -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{}
}
Expand Down
1 change: 1 addition & 0 deletions core/services/relay/evm/contract_transmitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 4985cf9

Please sign in to comment.