diff --git a/.gitignore b/.gitignore index 0288013e..7af61243 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ Gododir/godobin-* test_data_dir/ vendor/ -pkg/config/environments/*.toml +environments/*.toml diff --git a/README.md b/README.md index b5d9ce04..5939d505 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ The default location for Ethereum is: You can create configuration files for additional environments. * Among other things, it will require the IPC file path - * See `pkg/config/environments/private.toml` for an example + * See `environments/private.toml` for an example * You will need to do this if you want to run a node connecting to the public blockchain ## Running the Tests diff --git a/pkg/config/environments/private.toml b/environments/private.toml similarity index 100% rename from pkg/config/environments/private.toml rename to environments/private.toml diff --git a/pkg/config/config.go b/pkg/config/config.go index a6692ab3..34543aa3 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -27,7 +27,7 @@ var NewErrConfigFileNotFound = func(environment string) error { func NewConfig(environment string) (*Config, error) { filenameWithExtension := fmt.Sprintf("%s.toml", environment) - absolutePath := filepath.Join(ProjectRoot(), "pkg", "config", "environments", filenameWithExtension) + absolutePath := filepath.Join(ProjectRoot(), "environments", filenameWithExtension) config, err := parseConfigFile(absolutePath) if err != nil { return nil, NewErrConfigFileNotFound(environment)