Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Jun 6, 2024
1 parent 992c55b commit bd125a8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions x/crosschain/keeper/cctx_orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ import (
)

/*
ValidateOutboundObservers processes the finalization of an outbound transaction if receiver is ZEVM
ValidateOutboundZEVM processes the finalization of an outbound transaction if receiver is ZEVM.
It takes deposit error and information if contract revert happened during deposit, to make a decision:
- If the deposit is successful, the CCTX status is changed to OutboundMined.
- If the deposit was successful, the CCTX status is changed to OutboundMined.
- If the deposit returns an internal error i.e if HandleEVMDeposit() returns an error, but isContractReverted is false, the CCTX status is changed to Aborted.
- If the deposit returned an internal error, but isContractReverted is false, the CCTX status is changed to Aborted.
- If the deposit is reverted, the function tries to create a revert cctx with status PendingRevert.
Expand Down Expand Up @@ -206,7 +207,7 @@ func (k Keeper) validateFailedOutbound(
return nil
}

// validateSuccessfulOutboundObservers processes a successful outbound transaction. It does the following things in one function:
// validateSuccessfulOutbound processes a successful outbound transaction. It does the following things in one function:
//
// 1. Change the status of the CCTX from
// - PendingRevert to Reverted
Expand Down

0 comments on commit bd125a8

Please sign in to comment.