Skip to content

Commit

Permalink
Prettify.
Browse files Browse the repository at this point in the history
  • Loading branch information
omritoptix committed Dec 13, 2024
1 parent 0b68ab8 commit 07fa837
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rollappd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,10 @@ func initRootCmd(
// Set config
sdkconfig := sdk.GetConfig()
// Add ability to override bech32 prefix from env variable
prefix := os.Getenv("OVERRIDE_BECH32")
if prefix == "" {
prefix = app.AccountAddressPrefix
// Add ability to override bech32 prefix from env variable
prefix := app.AccountAddressPrefix
if overridePrefix := os.Getenv("OVERRIDE_BECH32"); overridePrefix != "" {
prefix = overridePrefix
}
utils.SetPrefixes(sdkconfig, prefix)
evmosconfig.SetBip44CoinType(sdkconfig)
Expand Down

0 comments on commit 07fa837

Please sign in to comment.