Skip to content

Commit

Permalink
passing along txManager
Browse files Browse the repository at this point in the history
  • Loading branch information
0xnogo committed Jun 28, 2024
1 parent be83926 commit 920e9a8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/services/ocr2/plugins/ccip/ccipexec/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/internal/cache"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/internal/ccipdata"
"github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/statuschecker"
)

type ExecutionReportingPluginFactory struct {
Expand Down Expand Up @@ -120,7 +121,7 @@ func (rf *ExecutionReportingPluginFactory) NewReportingPluginFn(config types.Rep
batchingStrategy = &BestEffortBatchingStrategy{}
case 1:
batchingStrategy = &ZKOverflowBatchingStrategy{
// statuschecker: statuschecker.NewTransactionStatusChecker(rf.config.txManager), // TODO: uncomment after TXM changes merged + chainlink merged
statuschecker: statuschecker.NewTxmStatusChecker(rf.config.txManager),
}
default:
batchingStrategy = &BestEffortBatchingStrategy{} // Default strategy
Expand Down
14 changes: 14 additions & 0 deletions core/services/relay/evm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/ccipcommit"
"github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/ccipexec"
ccipconfig "github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/config"
cciptransmitter "github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/transmitter"

"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -53,6 +54,7 @@ import (
reportcodecv2 "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/mercury/v2/reportcodec"
reportcodecv3 "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/mercury/v3/reportcodec"
"github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/mercury/wsrpc"
statuschecker "github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/statuschecker"
"github.com/smartcontractkit/chainlink/v2/core/services/relay/evm/types"
)

Expand Down Expand Up @@ -804,6 +806,18 @@ func newOnChainContractTransmitter(ctx context.Context, lggr logger.Logger, rarg
configWatcher.chain.ID(),
ethKeystore,
)
case commontypes.CCIPExecution:
transmitter, err = cciptransmitter.NewTransmitterWithStatusChecker(
configWatcher.chain.TxManager(),
fromAddresses,
gasLimit,
effectiveTransmitterAddress,
strategy,
checker,
configWatcher.chain.ID(),
ethKeystore,
statuschecker.NewTxmStatusChecker(configWatcher.chain.TxManager()),
)
default:
transmitter, err = ocrcommon.NewTransmitter(
configWatcher.chain.TxManager(),
Expand Down

0 comments on commit 920e9a8

Please sign in to comment.