Skip to content

Commit

Permalink
feat(build): Add ability to override bech32 with env var (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
omritoptix authored Dec 13, 2024
1 parent 65f00f6 commit 25ce045
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 := app.AccountAddressPrefix
if overridePrefix := os.Getenv("OVERRIDE_BECH32"); overridePrefix != "" {
prefix = overridePrefix
}
utils.SetPrefixes(sdkconfig, prefix)
evmosconfig.SetBip44CoinType(sdkconfig)
sdkconfig.Seal()

Expand Down

0 comments on commit 25ce045

Please sign in to comment.