Comment on page
If an error occurs during the execution of the call request on the destination chain, and a rollback parameter was provided in the initial
sendCallMessagemethod, the xCall contract on the source chain emits a
RollbackMessageevent. This event is triggered when an error occurs on the destination chain and a rollback operation is needed. The
RollbackMessageevent includes the serial number of the original request that needs to be rolled back.
The EOA on the source chain, after observing the
RollbackMessageevent, needs to invoke the
executeRollbackmethod on the xCall contract. This is done by passing the serial number of the original request that needs to be rolled back as an argument the same way as
The destination chain does not pass back rollback instructions. These are defined up front in the
_rollbackparameter in the
After the rollback operation is executed, the
RollbackExecutedevent is emitted by the xCall contract. This event notifies that the rollback has been executed and includes the serial number for the rollback, the execution result code, and a result message if any.