Skip to content

Commit

Permalink
Fix bech32 addr prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
tnv1 committed Mar 27, 2024
1 parent 81333f8 commit 4ce9b67
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const appName = "FeeApp"
// We pull these out so we can set them with LDFLAGS in the Makefile
var (
NodeDir = ".feeapp"
Bech32Prefix = "cosmos"
Bech32Prefix = "feeabs"
)

// These constants are derived from the above variables.
Expand Down Expand Up @@ -350,8 +350,8 @@ func NewFeeApp(
runtime.NewKVStoreService(keys[authtypes.StoreKey]),
authtypes.ProtoBaseAccount,
maccPerms,
authcodec.NewBech32Codec(sdk.Bech32MainPrefix),
sdk.Bech32MainPrefix,
authcodec.NewBech32Codec(sdk.GetConfig().GetBech32AccountAddrPrefix()),
sdk.GetConfig().GetBech32AccountAddrPrefix(),
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)
app.BankKeeper = bankkeeper.NewBaseKeeper(
Expand Down Expand Up @@ -379,8 +379,8 @@ func NewFeeApp(
app.AccountKeeper,
app.BankKeeper,
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
authcodec.NewBech32Codec(sdk.Bech32PrefixValAddr),
authcodec.NewBech32Codec(sdk.Bech32PrefixConsAddr),
authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix()),
authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ConsensusAddrPrefix()),
)
app.MintKeeper = mintkeeper.NewKeeper(
appCodec,
Expand Down

0 comments on commit 4ce9b67

Please sign in to comment.