We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd026ad commit 12af46cCopy full SHA for 12af46c
internal/config/config.go
@@ -55,14 +55,14 @@ func ParseConfig(config *Config) error {
55
return err
56
}
57
58
- // overwrite configurations
59
- if configJson.Provider != nil {
+ // overwrite configurations only when the default value is used
+ if configJson.Provider != nil && config.Provider == DefaultProvider {
60
config.Provider = *configJson.Provider
61
62
- if configJson.ApiKey != nil {
+ if configJson.ApiKey != nil && config.ApiKey == "" {
63
config.ApiKey = *configJson.ApiKey
64
65
- if configJson.EtherscanApiKey != nil {
+ if configJson.EtherscanApiKey != nil && config.EtherscanApiKey == "" {
66
config.EtherscanApiKey = *configJson.EtherscanApiKey
67
68
0 commit comments