Skip to content

Commit

Permalink
use address codec
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuvubk committed Nov 25, 2024
1 parent 989643f commit 710a95a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/bank/v2/keeper/createdenom.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (k Keeper) chargeForCreateDenom(ctx context.Context, creatorAddr string) (e
// if DenomCreationFee is non-zero, transfer the tokens from the creator
// account to community pool
if params.DenomCreationFee != nil {
accAddr, err := sdk.AccAddressFromBech32(creatorAddr)
accAddr, err := k.addressCodec.StringToBytes(creatorAddr)
if err != nil {
return err
}
Expand Down

0 comments on commit 710a95a

Please sign in to comment.