@@ -204,7 +204,6 @@ export class CrossChainExecutor {
204204 console . error ( 'Error executing UserOperation:' , e )
205205 // Validation failure during sending.
206206 // This indicates a potential issue with the UserOperation.
207- // TODO: Implement retry or cleanup logic here
208207 batchStatusInfo . status = OperationStatus . Failed
209208 batchStatusInfo . revertReason = e as any
210209 this . callCallback ( CallbackType . Failed , callback , batchStatusInfo )
@@ -394,7 +393,6 @@ export class CrossChainExecutor {
394393 for ( const outReq of op . batch . outVoucherRequests ) {
395394 for ( const nextOp of this . batchStatusInfos ! ) {
396395 if ( nextOp . batch . inputVoucherRequests . some ( inReq => outReq == inReq ) ) {
397- //TODO: need to push the request Ids depending on the actual destination chain
398396 if ( ! nextOp . requestIds ) nextOp . requestIds = [ ]
399397 // add requestIds related to this dest chain:
400398 for ( const req of collected . requests ?? [ ] ) {
@@ -409,7 +407,6 @@ export class CrossChainExecutor {
409407 }
410408
411409 } else {
412- //TODO: on-chain execution failed.
413410 // should trigger fallback actions
414411 op . status = OperationStatus . Failed
415412 this . callCallback ( CallbackType . Failed , callback , op )
@@ -430,7 +427,6 @@ export class CrossChainExecutor {
430427 }
431428 await new Promise ( resolve => setTimeout ( resolve , 100 ) )
432429 }
433- // TODO: throwing on timeout here is a bit too radical. This is a legitimate state we should handle.
434430 throw new Error ( 'timeout: ' + this . timeoutSeconds )
435431 }
436432
0 commit comments