Skip to content

Commit a2aef57

Browse files
committed
Changed ccip provider args offramp address type to bytes
1 parent a07d173 commit a2aef57

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

pkg/loop/ccip_provider_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func TestCCIPChainAccessorSyncPersistence(t *testing.T) {
5656
ExternalJobID: uuid.New(),
5757
ContractReaderConfig: []byte("asdf"),
5858
ChainWriterConfig: []byte("asdf"),
59-
OffRampAddress: "0x1234123412341234123412341234123412341234",
59+
OffRampAddress: []byte("0x1234123412341234123412341234123412341234"),
6060
PluginType: 0,
6161
Transmitter: "0x4321432143214321432143214321432143214321",
6262
})

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

Lines changed: 4 additions & 4 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
@@ -60,7 +60,7 @@ message CCIPProviderArgs {
6060
bytes externalJobID = 1; // [32]byte
6161
bytes contractReaderConfig = 2;
6262
bytes chainWriterConfig = 3;
63-
string OffRampAddress = 4;
63+
bytes offRampAddress = 4;
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

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ type staticRelayerConfig struct {
7575
pluginArgs types.PluginArgs
7676
contractReaderConfig []byte
7777
chainWriterConfig []byte
78-
offRampAddress string
78+
offRampAddress ccipocr3.UnknownAddress
7979
pluginType ccipocr3.PluginType
8080
transmitter string
8181
medianProvider testtypes.MedianProviderTester
@@ -103,7 +103,7 @@ func newStaticRelayerConfig(lggr logger.Logger, staticChecks bool) staticRelayer
103103
pluginArgs: PluginArgs,
104104
contractReaderConfig: []byte("test"),
105105
chainWriterConfig: []byte("chainwriterconfig"),
106-
offRampAddress: "fakeAddress",
106+
offRampAddress: []byte("fakeAddress"),
107107
pluginType: 0,
108108
transmitter: "fakeAddress",
109109
medianProvider: mediantest.MedianProvider(lggr),
@@ -481,7 +481,7 @@ func equalCCIPProviderArgs(a, b types.CCIPProviderArgs) bool {
481481
return a.ExternalJobID == b.ExternalJobID &&
482482
slices.Equal(a.ContractReaderConfig, b.ContractReaderConfig) &&
483483
slices.Equal(a.ChainWriterConfig, b.ChainWriterConfig) &&
484-
a.OffRampAddress == b.OffRampAddress &&
484+
slices.Equal(a.OffRampAddress, b.OffRampAddress) &&
485485
a.PluginType == b.PluginType &&
486486
a.Transmitter == b.Transmitter
487487
}

pkg/types/provider_ccip.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ type CCIPProvider interface {
6060
// The are common to all relayer implementations.
6161
type CCIPProviderArgs struct {
6262
ExternalJobID uuid.UUID
63-
OffRampAddress string
63+
OffRampAddress ccipocr3.UnknownAddress
6464
PluginType ccipocr3.PluginType
6565

6666
// These CR/CW configs are only used by accessors that still rely on ChainReader

0 commit comments

Comments
 (0)