Skip to content

Commit

Permalink
Added ability to override bech32 with env var.
Browse files Browse the repository at this point in the history
  • Loading branch information
omritoptix committed Dec 11, 2024
1 parent f9bd1b6 commit 147adcf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/rollappd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@ func initRootCmd(
) {
// Set config
sdkconfig := sdk.GetConfig()
rdk_utils.SetPrefixes(sdkconfig, app.AccountAddressPrefix)
// Add ability to override bech32 prefix from env variable
prefix := os.Getenv("OVERRIDE_BECH_32")
if prefix == "" {
prefix = app.AccountAddressPrefix
}
rdk_utils.SetPrefixes(sdkconfig, prefix)
utils.SetBip44CoinType(sdkconfig)
sdkconfig.Seal()

Expand Down

0 comments on commit 147adcf

Please sign in to comment.