Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
agusaldasoro committed Jun 27, 2024
1 parent 1775aa2 commit ec6f412
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/services/relay/evm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ type configTransmitterOpts struct {

// newOnChainContractTransmitter creates a new contract transmitter.
func newOnChainContractTransmitter(ctx context.Context, lggr logger.Logger, rargs commontypes.RelayArgs, ethKeystore keystore.Eth, configWatcher *configWatcher, opts configTransmitterOpts, transmissionContractABI abi.ABI, reportToEvmTxMeta ReportToEthMetadata, transmissionContractRetention time.Duration) (*contractTransmitter, error) {
transmitter, err := generateContractTransmitterFields(ctx, rargs, ethKeystore, configWatcher, opts)
transmitter, err := generateTransmitterFrom(ctx, rargs, ethKeystore, configWatcher, opts)
if err != nil {
return nil, err
}
Expand All @@ -760,7 +760,7 @@ func newOnChainContractTransmitter(ctx context.Context, lggr logger.Logger, rarg

// newOnChainContractTransmitterNoSignatures creates a new contract transmitter that avoids sending the signatures as they are validated offchain.
func newOnChainContractTransmitterNoSignatures(ctx context.Context, lggr logger.Logger, rargs commontypes.RelayArgs, ethKeystore keystore.Eth, configWatcher *configWatcher, opts configTransmitterOpts, transmissionContractABI abi.ABI, reportToEvmTxMeta ReportToEthMetadata, transmissionContractRetention time.Duration) (*contractTransmitterNoSignatures, error) {
transmitter, err := generateContractTransmitterFields(ctx, rargs, ethKeystore, configWatcher, opts)
transmitter, err := generateTransmitterFrom(ctx, rargs, ethKeystore, configWatcher, opts)
if err != nil {
return nil, err
}
Expand All @@ -778,7 +778,7 @@ func newOnChainContractTransmitterNoSignatures(ctx context.Context, lggr logger.
)
}

func generateContractTransmitterFields(ctx context.Context, rargs commontypes.RelayArgs, ethKeystore keystore.Eth, configWatcher *configWatcher, opts configTransmitterOpts) (Transmitter, error) {
func generateTransmitterFrom(ctx context.Context, rargs commontypes.RelayArgs, ethKeystore keystore.Eth, configWatcher *configWatcher, opts configTransmitterOpts) (Transmitter, error) {
var relayConfig types.RelayConfig
if err := json.Unmarshal(rargs.RelayConfig, &relayConfig); err != nil {
return nil, err
Expand Down

0 comments on commit ec6f412

Please sign in to comment.