From d437a394abf468a3fadae9568a9f2f18fe6f273e Mon Sep 17 00:00:00 2001 From: skosito Date: Fri, 7 Jun 2024 20:24:02 +0200 Subject: [PATCH] PR comment --- x/crosschain/keeper/cctx_orchestrator.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/x/crosschain/keeper/cctx_orchestrator.go b/x/crosschain/keeper/cctx_orchestrator.go index bf207cb6a5..01d2d7b325 100644 --- a/x/crosschain/keeper/cctx_orchestrator.go +++ b/x/crosschain/keeper/cctx_orchestrator.go @@ -139,7 +139,7 @@ func (k Keeper) validateFailedOutboundObservers(ctx sdk.Context, cctx *types.Cro } } } else { - err := k.validateFailedOutbound(ctx, cctx, oldStatus, "", cctx.GetCurrentOutboundParam().Amount) + err := k.validateFailedOutbound(ctx, cctx, oldStatus, "Outbound failed, start revert", cctx.GetCurrentOutboundParam().Amount) if err != nil { return cosmoserrors.Wrap(err, "validateFailedOutbound") } @@ -193,9 +193,6 @@ func (k Keeper) validateFailedOutbound( if err != nil { return err } - if revertMsg == "" { - revertMsg = "Outbound failed, start revert" - } // Not setting the finalization status here, the required changes have been made while creating the revert tx cctx.SetPendingRevert(revertMsg) case types.CctxStatus_PendingRevert: