diff --git a/cmd/rollappd/cmd/root.go b/cmd/rollappd/cmd/root.go index 4cd1e23..7492e8c 100644 --- a/cmd/rollappd/cmd/root.go +++ b/cmd/rollappd/cmd/root.go @@ -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)