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 13, 2024
1 parent 65f00f6 commit 0b68ab8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rollappd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,12 @@ func initRootCmd(
) {
// Set config
sdkconfig := sdk.GetConfig()
utils.SetPrefixes(sdkconfig, app.AccountAddressPrefix)
// Add ability to override bech32 prefix from env variable
prefix := os.Getenv("OVERRIDE_BECH32")
if prefix == "" {
prefix = app.AccountAddressPrefix
}
utils.SetPrefixes(sdkconfig, prefix)
evmosconfig.SetBip44CoinType(sdkconfig)
sdkconfig.Seal()

Expand Down

0 comments on commit 0b68ab8

Please sign in to comment.