Skip to content

Commit

Permalink
Update cmd/rollappd/cmd/root.go
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Pham <[email protected]>
  • Loading branch information
omritoptix and VictorTrustyDev authored Dec 13, 2024
1 parent c154a5c commit 698623c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/rollappd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ 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
prefix := app.AccountAddressPrefix
if overridePrefix := os.Getenv("OVERRIDE_BECH32"); overridePrefix != "" {
prefix = overridePrefix
}
rdk_utils.SetPrefixes(sdkconfig, prefix)
utils.SetBip44CoinType(sdkconfig)
Expand Down

0 comments on commit 698623c

Please sign in to comment.