Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Jun 13, 2024
1 parent e7cedab commit dd56896
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion x/crosschain/keeper/cctx_gateway_observers.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,5 @@ func (c CCTXGatewayObservers) InitiateOutbound(
return types.CctxStatus_Aborted
}
commit()
cctx.SetPendingOutbound("")
return types.CctxStatus_PendingOutbound
}
1 change: 0 additions & 1 deletion x/crosschain/keeper/cctx_gateway_zevm.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func (c CCTXGatewayZEVM) InitiateOutbound(ctx sdk.Context, cctx *types.CrossChai
return types.CctxStatus_Aborted
}

cctx.SetPendingOutbound("")
newCCTXStatus = c.crosschainKeeper.ValidateOutboundZEVM(ctx, cctx, err, isContractReverted)
if newCCTXStatus == types.CctxStatus_OutboundMined {
commit()
Expand Down
2 changes: 1 addition & 1 deletion x/crosschain/keeper/cctx_orchestrator_validate_outbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (k Keeper) validateFailedOutbound(
cctx *types.CrossChainTx,
oldStatus types.CctxStatus,
revertMsg string,
inputAmount math.Uint, // TODO: find different way for this
inputAmount math.Uint,
) error {
switch oldStatus {
case types.CctxStatus_PendingOutbound:
Expand Down
1 change: 1 addition & 0 deletions x/crosschain/keeper/initiate_outbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ func (k Keeper) InitiateOutbound(ctx sdk.Context, cctx *types.CrossChainTx) (typ
)
}

cctx.SetPendingOutbound("")
return cctxGateway.InitiateOutbound(ctx, cctx), nil
}

0 comments on commit dd56896

Please sign in to comment.