Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
18aaddy committed Sep 24, 2024
1 parent 5bbd4a1 commit 1c26a55
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 229 deletions.
221 changes: 0 additions & 221 deletions cli/main.go

This file was deleted.

2 changes: 0 additions & 2 deletions client/client.go

This file was deleted.

12 changes: 6 additions & 6 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestMainnetBaseConfig(t *testing.T) {
var cliConfig CliConfig
var config Config

config = config.from_file(&path, &network, &cliConfig)
config = config.FromFile(&path, &network, &cliConfig)

mainnetConfig, _ := Mainnet()

Expand Down Expand Up @@ -77,7 +77,7 @@ func TestConfigFileCreatedSuccessfully(t *testing.T) {
var cliConfig CliConfig
var config Config

config = config.from_file(&path, &network, &cliConfig)
config = config.FromFile(&path, &network, &cliConfig)

if config.ConsensusRpc != consensusRpc {
t.Errorf("Expected ConsensusRpc to be %s, but got %s", consensusRpc, config.ConsensusRpc)
Expand Down Expand Up @@ -109,7 +109,7 @@ func TestCliConfig(t *testing.T) {
}
var config Config

config = config.from_file(&path, &network, &cliConfig)
config = config.FromFile(&path, &network, &cliConfig)

if config.ExecutionRpc != *cliConfig.ExecutionRpc {
t.Errorf("Expected Execution rpc to be %s, but got %s", *cliConfig.ExecutionRpc, config.ExecutionRpc)
Expand Down Expand Up @@ -142,7 +142,7 @@ func TestIfFieldNotInCliDefaultsToTomlThenBaseConfig(t *testing.T) {
RpcBindIp: &rpcBindIp,
}
var config Config
config = config.from_file(&path, &network, &cliConfig)
config = config.FromFile(&path, &network, &cliConfig)
mainnetConfig, _ := Mainnet()

// Rpc Port defined in toml file not in cli config
Expand Down Expand Up @@ -198,7 +198,7 @@ func TestReturnsCorrectBaseConfig(t *testing.T) {
StrictCheckpointAge: strictCheckpointAge,
}

baseConfig := config.to_base_config()
baseConfig := config.ToBaseConfig()

if !reflect.DeepEqual(baseConfig.Chain, config.Chain) {
t.Errorf("Expected Chain to be %v, got %v", config.Chain, baseConfig.Chain)
Expand All @@ -222,7 +222,7 @@ func TestReturnsCorrectDefaultValues(t *testing.T) {
StrictCheckpointAge: strictCheckpointAge,
}

baseConfig := config.to_base_config()
baseConfig := config.ToBaseConfig()
if baseConfig.MaxCheckpointAge != config.MaxCheckpointAge {
t.Errorf("Expected Max Checkpoint age to be %v, got %v", config.MaxCheckpointAge, baseConfig.MaxCheckpointAge)
}
Expand Down

0 comments on commit 1c26a55

Please sign in to comment.