From 7138f1acf010d9c44e8d62bc444a434da3515f72 Mon Sep 17 00:00:00 2001 From: Reece Williams Date: Thu, 24 Aug 2023 14:55:28 -0500 Subject: [PATCH] remove complex logic --- x/globalfee/ante/fee.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/x/globalfee/ante/fee.go b/x/globalfee/ante/fee.go index 22a4e7fcd..58c27e14d 100644 --- a/x/globalfee/ante/fee.go +++ b/x/globalfee/ante/fee.go @@ -129,12 +129,7 @@ func (mfd FeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, ne return ctx, errorsmod.Wrapf(sdkerrors.ErrInsufficientFee, "no fees were specified; one fee must be provided %s", PrettyPrint(combinedFeeRequirement)) } - feeDiff := combinedFeeRequirement - for _, c := range feeCoins { - feeDiff = feeDiff.Sub(c) - } - - return ctx, errorsmod.Wrapf(sdkerrors.ErrInsufficientFee, "insufficient fees; only got: %s. number of coins needed: %s. one is required: %s. ", feeCoins, feeDiff, PrettyPrint(combinedFeeRequirement)) + return ctx, errorsmod.Wrapf(sdkerrors.ErrInsufficientFee, "insufficient fees; only got: %s. one is required: %s. ", feeCoins, PrettyPrint(combinedFeeRequirement)) } }