Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
Update envar to match convention (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickSolante authored Jan 29, 2024
1 parent efed64e commit 1abc25f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/config/values.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func GetValues() *Values {
viper.SetDefault("erc4337_bundler_max_op_ttl_seconds", 180)
viper.SetDefault("erc4337_bundler_blocks_in_the_future", 6)
viper.SetDefault("erc4337_bundler_otel_insecure_mode", false)
viper.SetDefault("erc4337_is_op_stack_network", false)
viper.SetDefault("erc4337_bundler_is_op_stack_network", false)
viper.SetDefault("erc4337_bundler_debug_mode", false)
viper.SetDefault("erc4337_bundler_gin_mode", gin.ReleaseMode)

Expand Down Expand Up @@ -130,7 +130,7 @@ func GetValues() *Values {
_ = viper.BindEnv("erc4337_bundler_otel_insecure_mode")
_ = viper.BindEnv("erc4337_bundler_alt_mempool_ipfs_gateway")
_ = viper.BindEnv("erc4337_bundler_alt_mempool_ids")
_ = viper.BindEnv("erc4337_is_op_stack_network")
_ = viper.BindEnv("erc4337_bundler_is_op_stack_network")
_ = viper.BindEnv("erc4337_bundler_debug_mode")
_ = viper.BindEnv("erc4337_bundler_gin_mode")

Expand Down Expand Up @@ -189,7 +189,7 @@ func GetValues() *Values {
otelInsecureMode := viper.GetBool("erc4337_bundler_otel_insecure_mode")
altMempoolIPFSGateway := viper.GetString("erc4337_bundler_alt_mempool_ipfs_gateway")
altMempoolIds := envArrayToStringSlice(viper.GetString("erc4337_bundler_alt_mempool_ids"))
isOpStackNetwork := viper.GetBool("erc4337_is_op_stack_network")
isOpStackNetwork := viper.GetBool("erc4337_bundler_is_op_stack_network")
debugMode := viper.GetBool("erc4337_bundler_debug_mode")
ginMode := viper.GetString("erc4337_bundler_gin_mode")
return &Values{
Expand Down

0 comments on commit 1abc25f

Please sign in to comment.