From 1b8dfb61cd3ffb29112d38190d9f4aa5288fa57e Mon Sep 17 00:00:00 2001 From: Bartek Tofel Date: Tue, 11 Jun 2024 17:04:02 +0200 Subject: [PATCH] debug vol.3 --- integration-tests/actions/seth/actions.go | 6 ++++++ integration-tests/testconfig/configs_embed.go | 4 ++++ integration-tests/testconfig/default.toml | 1 - integration-tests/testconfig/testconfig.go | 5 ++++- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/integration-tests/actions/seth/actions.go b/integration-tests/actions/seth/actions.go index 68f6df9b49e..aedf435d0cf 100644 --- a/integration-tests/actions/seth/actions.go +++ b/integration-tests/actions/seth/actions.go @@ -3,6 +3,7 @@ package actions_seth import ( "context" "crypto/ecdsa" + "encoding/json" "fmt" "math" "math/big" @@ -1009,6 +1010,11 @@ func GetChainClientWithConfigFunction(config ctf_config.SethConfig, network bloc return nil, errors.Wrapf(err, "Error validating seth network config") } + asJson, err := json.MarshalIndent(sethCfg, "", " ") + if err == nil { + fmt.Printf("Using Seth Config: %s\n", string(asJson)) + } + chainClient, err := seth.NewClientWithConfig(&sethCfg) if err != nil { return nil, errors.Wrapf(err, "Error creating seth client") diff --git a/integration-tests/testconfig/configs_embed.go b/integration-tests/testconfig/configs_embed.go index 67e954ff503..4da80daa8b0 100644 --- a/integration-tests/testconfig/configs_embed.go +++ b/integration-tests/testconfig/configs_embed.go @@ -9,9 +9,13 @@ import "embed" //go:embed automation/automation.toml //go:embed functions/functions.toml //go:embed keeper/keeper.toml +//go:embed forwarder_ocr/forwarder_ocr.toml +//go:embed forwarder_ocr2/forwarder_ocr2.toml +//go:embed functions/functions.toml //go:embed log_poller/log_poller.toml //go:embed node/node.toml //go:embed ocr/ocr.toml +//go:embed ocr2/ocr2.toml //go:embed vrfv2/vrfv2.toml //go:embed vrfv2plus/vrfv2plus.toml var embeddedConfigsFs embed.FS diff --git a/integration-tests/testconfig/default.toml b/integration-tests/testconfig/default.toml index 397fc2ee792..1a9d64df4b5 100644 --- a/integration-tests/testconfig/default.toml +++ b/integration-tests/testconfig/default.toml @@ -365,7 +365,6 @@ gas_price_estimation_blocks = 30 # priority of the transaction, can be "fast", "standard" or "slow" (the higher the priority, the higher adjustment factor will be used for gas estimation) [default: "standard"] gas_price_estimation_tx_priority = "standard" - [[Seth.networks]] name = "Base Sepolia" transaction_timeout = "3m" diff --git a/integration-tests/testconfig/testconfig.go b/integration-tests/testconfig/testconfig.go index 8cc93bb4e47..4d22321f6b3 100644 --- a/integration-tests/testconfig/testconfig.go +++ b/integration-tests/testconfig/testconfig.go @@ -309,6 +309,7 @@ func GetConfig(configurationName string, product Product) (TestConfig, error) { if testConfig.Seth != nil { logger.Warn().Msgf("Ephemeral keys: %d", *testConfig.Seth.EphemeralAddrs) + logger.Warn().Msgf("Number of Seth networks: %d", len(testConfig.Seth.Networks)) } } } @@ -338,6 +339,7 @@ func GetConfig(configurationName string, product Product) (TestConfig, error) { if testConfig.Seth != nil { logger.Warn().Msgf("Ephemeral keys: %d", *testConfig.Seth.EphemeralAddrs) + logger.Warn().Msgf("Number of Seth networks: %d", len(testConfig.Seth.Networks)) } } @@ -360,9 +362,10 @@ func GetConfig(configurationName string, product Product) (TestConfig, error) { if testConfig.Seth != nil { logger.Warn().Msgf("Ephemeral keys: %d", *testConfig.Seth.EphemeralAddrs) + logger.Warn().Msgf("Number of Seth networks: %d", len(testConfig.Seth.Networks)) } - // it neede some custom logic, so we do it separately + // it needs some custom logic, so we do it separately err := testConfig.readNetworkConfiguration() if err != nil { return TestConfig{}, errors.Wrapf(err, "error reading network config")