Skip to content

Commit 076fb06

Browse files
committed
Updated string type to use UnknownEncodedAddress
1 parent 00693ea commit 076fb06

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pkg/loop/internal/relayer/relayer.go

Lines changed: 2 additions & 2 deletions
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-
TransmitterAddress: cargs.TransmitterAddress,
304+
TransmitterAddress: string(cargs.TransmitterAddress),
305305
},
306306
})
307307
if err != nil {
@@ -734,7 +734,7 @@ func (r *relayerServer) NewCCIPProvider(ctx context.Context, request *pb.NewCCIP
734734
ChainWriterConfig: rargs.ChainWriterConfig,
735735
OffRampAddress: rargs.OffRampAddress,
736736
PluginType: ccipocr3types.PluginType(rargs.PluginType),
737-
TransmitterAddress: rargs.TransmitterAddress,
737+
TransmitterAddress: ccipocr3types.UnknownEncodedAddress(rargs.TransmitterAddress),
738738
}
739739

740740
provider, err := r.impl.NewCCIPProvider(ctx, ccipProviderArgs)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ type staticRelayerConfig struct {
7777
chainWriterConfig []byte
7878
offRampAddress ccipocr3.UnknownAddress
7979
pluginType ccipocr3.PluginType
80-
transmitterAddress string
80+
transmitterAddress ccipocr3.UnknownEncodedAddress
8181
medianProvider testtypes.MedianProviderTester
8282
agnosticProvider testtypes.PluginProviderTester
8383
mercuryProvider mercurytest.MercuryProviderTester

pkg/types/provider_ccip.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type CCIPProviderArgs struct {
6262
ExternalJobID uuid.UUID
6363
OffRampAddress ccipocr3.UnknownAddress
6464
PluginType ccipocr3.PluginType
65-
TransmitterAddress string
65+
TransmitterAddress ccipocr3.UnknownEncodedAddress
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)