From c235d069182b1f78c29160ccf14e09f73b254fc0 Mon Sep 17 00:00:00 2001 From: sotnikov-s Date: Mon, 18 Sep 2023 17:36:11 +0300 Subject: [PATCH] replace DenomCreationFee nil check with empty check --- x/tokenfactory/keeper/createdenom.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/tokenfactory/keeper/createdenom.go b/x/tokenfactory/keeper/createdenom.go index 92b7533cc..a57a44af8 100644 --- a/x/tokenfactory/keeper/createdenom.go +++ b/x/tokenfactory/keeper/createdenom.go @@ -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 //}