Skip to content

Commit 6efb90c

Browse files
committed
Updated transmitter arg name
1 parent 91f3f78 commit 6efb90c

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

pkg/loop/ccip_provider_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func TestCCIPChainAccessorSyncPersistence(t *testing.T) {
5858
ChainWriterConfig: []byte("asdf"),
5959
OffRampAddress: []byte("0x1234123412341234123412341234123412341234"),
6060
PluginType: 0,
61-
Transmitter: "0x4321432143214321432143214321432143214321",
61+
TransmitterAddress: "0x4321432143214321432143214321432143214321",
6262
})
6363
require.NoError(t, err)
6464
require.NotNil(t, ccipProvider)

pkg/loop/internal/pb/relayer.pb.go

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/loop/internal/pb/relayer.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ message CCIPProviderArgs {
6464
// pluginType is actually a uint8 but uint32 is the smallest supported by protobuf
6565
uint32 pluginType = 5;
6666
map<string, bytes> synced_addresses = 6; // map[contract_name]contract_address
67-
string transmitter = 7;
67+
string transmitterAddress = 7;
6868
}
6969

7070
// NewContractWriterRequest has request parameters for [github.com/smartcontractkit/chainlink-common/pkg/loop.Relayer.NewContractWriter].

pkg/loop/internal/relayer/relayer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ func (r *relayerClient) NewCCIPProvider(ctx context.Context, cargs types.CCIPPro
301301
OffRampAddress: cargs.OffRampAddress,
302302
PluginType: uint32(cargs.PluginType),
303303
SyncedAddresses: persistedSyncs,
304-
Transmitter: cargs.Transmitter,
304+
TransmitterAddress: cargs.TransmitterAddress,
305305
},
306306
})
307307
if err != nil {

pkg/loop/internal/relayer/test/relayer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ func (s staticRelayer) NewCCIPProvider(ctx context.Context, r types.CCIPProvider
323323
ChainWriterConfig: s.chainWriterConfig,
324324
OffRampAddress: s.offRampAddress,
325325
PluginType: s.pluginType,
326-
Transmitter: s.transmitter,
326+
TransmitterAddress: s.transmitter,
327327
}
328328
if s.StaticChecks && !equalCCIPProviderArgs(r, ccipProviderArgs) {
329329
return nil, fmt.Errorf("expected relay args:\n\t%v\nbut got:\n\t%v", s.relayArgs, r)
@@ -483,7 +483,7 @@ func equalCCIPProviderArgs(a, b types.CCIPProviderArgs) bool {
483483
slices.Equal(a.ChainWriterConfig, b.ChainWriterConfig) &&
484484
slices.Equal(a.OffRampAddress, b.OffRampAddress) &&
485485
a.PluginType == b.PluginType &&
486-
a.Transmitter == b.Transmitter
486+
a.TransmitterAddress == b.TransmitterAddress
487487
}
488488

489489
func newRelayArgsWithProviderType(_type types.OCR2PluginType) types.RelayArgs {

pkg/types/provider_ccip.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ type CCIPProvider interface {
5959
// CCIPProviderArgs are the args required to create a CCIP Provider through a Relayer.
6060
// The are common to all relayer implementations.
6161
type CCIPProviderArgs struct {
62-
ExternalJobID uuid.UUID
63-
OffRampAddress ccipocr3.UnknownAddress
64-
PluginType ccipocr3.PluginType
65-
Transmitter string
62+
ExternalJobID uuid.UUID
63+
OffRampAddress ccipocr3.UnknownAddress
64+
PluginType ccipocr3.PluginType
65+
TransmitterAddress string
6666

6767
// These CR/CW configs are only used by accessors that still rely on ChainReader
6868
// and ChainWriter, like SolanaAccessor.

0 commit comments

Comments
 (0)