From 510e26f66a395b93d467b0bfc2ff6199d5e68b6a Mon Sep 17 00:00:00 2001 From: Tuan Tran Date: Tue, 28 May 2024 00:17:07 +0700 Subject: [PATCH] allow deduct fee event when outdated hostzone --- x/feeabs/ante/decorate.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/x/feeabs/ante/decorate.go b/x/feeabs/ante/decorate.go index bd2ac8b0..767bd1e2 100644 --- a/x/feeabs/ante/decorate.go +++ b/x/feeabs/ante/decorate.go @@ -118,9 +118,9 @@ func (fadfd FeeAbstractionDeductFeeDecorate) abstractionDeductFeeHandler(ctx sdk return ctx, sdkerrors.Wrap(feeabstypes.ErrHostZoneFrozen, "cannot deduct fee as host zone is frozen") } - if hostChainConfig.Status == feeabstypes.HostChainFeeAbsStatus_OUTDATED { - return ctx, sdkerrors.Wrap(feeabstypes.ErrHostZoneOutdated, "cannot deduct fee as host zone is outdated") - } + // if hostChainConfig.Status == feeabstypes.HostChainFeeAbsStatus_OUTDATED { + // return ctx, sdkerrors.Wrap(feeabstypes.ErrHostZoneOutdated, "cannot deduct fee as host zone is outdated") + // } fee := feeTx.GetFee() feePayer := feeTx.FeePayer() @@ -277,9 +277,9 @@ func (famfd FeeAbstrationMempoolFeeDecorator) AnteHandle(ctx sdk.Context, tx sdk return ctx, sdkerrors.Wrapf(feeabstypes.ErrHostZoneFrozen, "cannot deduct fee as host zone is frozen") } - if hostChainConfig.Status == feeabstypes.HostChainFeeAbsStatus_OUTDATED { - return ctx, sdkerrors.Wrapf(feeabstypes.ErrHostZoneOutdated, "cannot deduct fee as host zone is outdated") - } + // if hostChainConfig.Status == feeabstypes.HostChainFeeAbsStatus_OUTDATED { + // return ctx, sdkerrors.Wrapf(feeabstypes.ErrHostZoneOutdated, "cannot deduct fee as host zone is outdated") + // } nativeCoinsFees, err := famfd.feeabsKeeper.CalculateNativeFromIBCCoins(ctx, feeCoinsNonZeroDenom, hostChainConfig) if err != nil {