Skip to content

Commit c693938

Browse files
committed
Move BatchVerified event emission into _verifyBatchInternal so it fires
for every batch in a multi-batch verifyBatches call, preserving compatibility with systems that listen for per-batch events.
1 parent 8158381 commit c693938

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

crates/l2/contracts/src/l1/OnChainProposer.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,8 @@ contract OnChainProposer is
464464

465465
// Remove previous batch commitment as it is no longer needed.
466466
delete batchCommitments[batchNumber - 1];
467+
468+
emit BatchVerified(lastVerifiedBatch);
467469
}
468470

469471
/// @inheritdoc IOnChainProposer
@@ -492,7 +494,6 @@ contract OnChainProposer is
492494
tdxSignatures[i]
493495
);
494496
}
495-
emit BatchVerified(lastVerifiedBatch);
496497
}
497498

498499
/// @inheritdoc IOnChainProposer

crates/l2/contracts/src/l1/based/OnChainProposer.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,8 @@ contract OnChainProposer is
426426

427427
// Remove previous batch commitment as it is no longer needed.
428428
delete batchCommitments[batchNumber - 1];
429+
430+
emit BatchVerified(lastVerifiedBatch);
429431
}
430432

431433
/// @inheritdoc IOnChainProposer
@@ -454,7 +456,6 @@ contract OnChainProposer is
454456
tdxSignatures[i]
455457
);
456458
}
457-
emit BatchVerified(lastVerifiedBatch);
458459
}
459460

460461
/// @inheritdoc IOnChainProposer

0 commit comments

Comments
 (0)