Skip to content

Commit

Permalink
replace DenomCreationFee nil check with empty check
Browse files Browse the repository at this point in the history
  • Loading branch information
sotnikov-s committed Sep 18, 2023
1 parent 13b5273 commit c235d06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/tokenfactory/keeper/createdenom.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ func (k Keeper) chargeForCreateDenom(ctx sdk.Context, creatorAddr string) (err e
// account to community pool
// MODIFIED: if DenomCreationFee is non-zero, transfer the tokens from the creator
// account to feeCollectorAddr
if params.DenomCreationFee != nil {
if len(params.DenomCreationFee) != 0 {
accAddr, err := sdk.AccAddressFromBech32(creatorAddr)
if err != nil {
return err
}
// Instead of funding community pool we send funds to fee collector addr
//if err := k.communityPoolKeeper.FundCommunityPool(ctx, params.DenomCreationFee, accAddr); err != nil {
// if err := k.communityPoolKeeper.FundCommunityPool(ctx, params.DenomCreationFee, accAddr); err != nil {
// return err
//}

Expand Down

0 comments on commit c235d06

Please sign in to comment.