Skip to content

Commit d4fe4be

Browse files
emit the verifier type on the deleteProgramId method
1 parent b938200 commit d4fe4be

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

contracts/src/core/AlignedProofAggregationService.sol

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,9 @@ contract AlignedProofAggregationService is
177177
/// @notice Deletes a program ID from the list of valid program IDs.
178178
/// @param programId The program ID to delete (image ID for RISC0 or vk hash for SP1).
179179
function deleteProgramId(bytes32 programId) external onlyOwner {
180-
// Check if we should verify its existence before deleting
180+
// Preserve the verifier type so we can emit it with the event
181+
uint8 verifierTypeRaw = programIds[programId];
181182
delete programIds[programId];
182-
emit ProgramIdDeleted(programId);
183+
emit ProgramIdDeleted(programId, IAlignedProofAggregationService.VerifierType(verifierTypeRaw));
183184
}
184185
}

contracts/src/core/IAlignedProofAggregationService.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface IAlignedProofAggregationService {
1515
event ProgramIdAdded(bytes32 indexed programId, VerifierType verifierType);
1616

1717
/// @notice Event emitted when a program ID is deleted
18-
event ProgramIdDeleted(bytes32 indexed programId);
18+
event ProgramIdDeleted(bytes32 indexed programId, VerifierType verifierType);
1919

2020
/// @notice Method to verify an aggregated proof from aligned
2121
/// @dev This function is called by the aligned proof aggregator after collecting the proofs and aggregating them

0 commit comments

Comments
 (0)