From 20459364f7623f08aa6c4d40e98eb64d0803104e Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 8 Nov 2023 17:09:47 -0800 Subject: [PATCH] fix lint --- x/fungible/keeper/evm.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/x/fungible/keeper/evm.go b/x/fungible/keeper/evm.go index 8b952af0f5..041ef4cd9c 100644 --- a/x/fungible/keeper/evm.go +++ b/x/fungible/keeper/evm.go @@ -653,20 +653,20 @@ func (k Keeper) CallEVMWithData( if res.Failed() { return res, cosmoserrors.Wrap(evmtypes.ErrVMExecution, fmt.Sprintf("%s: ret 0x%x", res.VmError, res.Ret)) - } else { - // call PostTxProcessing hook - receipt := ðtypes.Receipt{ - Logs: logs, - TxHash: common.HexToHash(res.Hash), - } - if err = k.evmKeeper.PostTxProcessing(ctx, msg, receipt); err != nil { - // if post-processing return error, revert the whole tx - k.Logger(ctx).Error("tx post processing failed", "error", err) - return nil, cosmoserrors.Wrap(evmtypes.ErrPostTxProcessing, err.Error()) - } } - // Emit events and log for the transaction if it is committed + // call PostTxProcessing hook + receipt := ðtypes.Receipt{ + Logs: logs, + TxHash: common.HexToHash(res.Hash), + } + if err = k.evmKeeper.PostTxProcessing(ctx, msg, receipt); err != nil { + // if post-processing return error, revert the whole tx + k.Logger(ctx).Error("tx post processing failed", "error", err) + return nil, cosmoserrors.Wrap(evmtypes.ErrPostTxProcessing, err.Error()) + } + + // emit events and log for the transaction if it is committed if commit { msgBytes, err := json.Marshal(msg) if err != nil {