diff --git a/integration-tests/load/automationv2_1/automationv2_1_test.go b/integration-tests/load/automationv2_1/automationv2_1_test.go index 06c4f572218..d7b5c30154e 100644 --- a/integration-tests/load/automationv2_1/automationv2_1_test.go +++ b/integration-tests/load/automationv2_1/automationv2_1_test.go @@ -2,6 +2,7 @@ package automationv2_1 import ( "context" + "encoding/hex" "fmt" "math" "math/big" @@ -382,6 +383,7 @@ Load Config: PerformBurnAmount: u.PerformBurnAmount, UpkeepGasLimit: u.UpkeepGasLimit, SharedTrigger: u.SharedTrigger, + Feeds: u.Feeds, } loadConfigs = append(loadConfigs, loadCfg) @@ -415,17 +417,22 @@ Load Config: } encodedLogTriggerConfig, err := convenienceABI.Methods["_logTriggerConfig"].Inputs.Pack(&logTriggerConfigStruct) require.NoError(t, err, "Error encoding log trigger config") - l.Debug().Bytes("Encoded Log Trigger Config", encodedLogTriggerConfig).Msg("Encoded Log Trigger Config") + l.Debug(). + Interface("logTriggerConfigStruct", logTriggerConfigStruct). + Str("Encoded Log Trigger Config", hex.EncodeToString(encodedLogTriggerConfig)).Msg("Encoded Log Trigger Config") checkDataStruct := simple_log_upkeep_counter_wrapper.CheckData{ CheckBurnAmount: loadConfigs[i].CheckBurnAmount, PerformBurnAmount: loadConfigs[i].PerformBurnAmount, EventSig: bytes1, + Feeds: loadConfigs[i].Feeds, } encodedCheckDataStruct, err := consumerABI.Methods["_checkDataConfig"].Inputs.Pack(&checkDataStruct) require.NoError(t, err, "Error encoding check data struct") - l.Debug().Bytes("Encoded Check Data Struct", encodedCheckDataStruct).Msg("Encoded Check Data Struct") + l.Debug(). + Interface("checkDataStruct", checkDataStruct). + Str("Encoded Check Data Struct", hex.EncodeToString(encodedCheckDataStruct)).Msg("Encoded Check Data Struct") upkeepConfig := automationv2.UpkeepConfig{ UpkeepName: fmt.Sprintf("LogTriggerUpkeep-%d", i), diff --git a/integration-tests/testconfig/automation/config.go b/integration-tests/testconfig/automation/config.go index c31c6f9971f..a1f8d47d948 100644 --- a/integration-tests/testconfig/automation/config.go +++ b/integration-tests/testconfig/automation/config.go @@ -72,6 +72,7 @@ type Load struct { SharedTrigger *bool `toml:"shared_trigger"` UpkeepGasLimit *uint32 `toml:"upkeep_gas_limit"` IsStreamsLookup *bool `toml:"is_streams_lookup"` + Feeds []string `toml:"feeds"` } func (c *Load) Validate() error { @@ -93,6 +94,11 @@ func (c *Load) Validate() error { if c.PerformBurnAmount == nil || c.PerformBurnAmount.Cmp(big.NewInt(0)) < 0 { return errors.New("perform_burn_amount must be set to a non-negative integer") } + if c.IsStreamsLookup == nil || *c.IsStreamsLookup { + if c.Feeds == nil { + c.Feeds = []string{} + } + } return nil }