Skip to content

Commit

Permalink
debug vol.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Jun 11, 2024
1 parent 790a5f4 commit 1b8dfb6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions integration-tests/actions/seth/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package actions_seth
import (
"context"
"crypto/ecdsa"
"encoding/json"
"fmt"
"math"
"math/big"
Expand Down Expand Up @@ -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")
Expand Down
4 changes: 4 additions & 0 deletions integration-tests/testconfig/configs_embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion integration-tests/testconfig/default.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion integration-tests/testconfig/testconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
}
Expand Down Expand Up @@ -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))
}
}

Expand All @@ -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")
Expand Down

0 comments on commit 1b8dfb6

Please sign in to comment.