From d2a3fab635ccabd129881ebd44eb73fb35c769b0 Mon Sep 17 00:00:00 2001 From: aljo242 Date: Fri, 17 May 2024 13:50:05 -0400 Subject: [PATCH] fix --- x/feemarket/ante/fee.go | 4 ++-- x/feemarket/types/errors.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/x/feemarket/ante/fee.go b/x/feemarket/ante/fee.go index 14b0a82..838f7f6 100644 --- a/x/feemarket/ante/fee.go +++ b/x/feemarket/ante/fee.go @@ -55,7 +55,7 @@ func (dfd FeeMarketCheckDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simula if len(feeCoins) != 1 { if len(feeCoins) == 0 { - return ctx, errorsmod.Wrapf(feemarkettypes.ErrTest, "got length %d", len(feeCoins)) + return ctx, errorsmod.Wrapf(feemarkettypes.ErrNoFeeCoins, "got length %d", len(feeCoins)) } return ctx, errorsmod.Wrapf(feemarkettypes.ErrTooManyFeeCoins, "got length %d", len(feeCoins)) } @@ -84,7 +84,7 @@ func (dfd FeeMarketCheckDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simula func CheckTxFee(ctx sdk.Context, minFeesDecCoin sdk.DecCoin, feeTx sdk.FeeTx, isCheck bool, resolver feemarkettypes.DenomResolver) (payCoin sdk.Coin, tip sdk.Coin, err error) { if len(feeTx.GetFee()) != 1 { if len(feeTx.GetFee()) == 0 { - return sdk.Coin{}, sdk.Coin{}, errorsmod.Wrapf(feemarkettypes.ErrTest, "got length %d", len(feeTx.GetFee())) + return sdk.Coin{}, sdk.Coin{}, errorsmod.Wrapf(feemarkettypes.ErrNoFeeCoins, "got length %d", len(feeTx.GetFee())) } return sdk.Coin{}, sdk.Coin{}, errorsmod.Wrapf(feemarkettypes.ErrTooManyFeeCoins, "got length %d", len(feeTx.GetFee())) } diff --git a/x/feemarket/types/errors.go b/x/feemarket/types/errors.go index 9441d21..3c506e3 100644 --- a/x/feemarket/types/errors.go +++ b/x/feemarket/types/errors.go @@ -7,6 +7,5 @@ import ( var ( ErrNoFeeCoins = sdkerrors.New(ModuleName, 1, "no fee coin provided. Must provide one.") ErrTooManyFeeCoins = sdkerrors.New(ModuleName, 2, "too many fee coins provided. Only one fee coin may be provided") - ErrTest = sdkerrors.New(ModuleName, 4, "TEST") ErrResolverNotSet = sdkerrors.New(ModuleName, 3, "denom resolver interface not set") )