Skip to content

Commit

Permalink
remove complex logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Aug 24, 2023
1 parent 023a2ab commit 7138f1a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions x/globalfee/ante/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down

0 comments on commit 7138f1a

Please sign in to comment.