Skip to content

Commit 6b54e1e

Browse files
Fix the modifier to add and delete in proof agg service
1 parent 23c295f commit 6b54e1e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

contracts/src/core/AlignedProofAggregationService.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ contract AlignedProofAggregationService is
155155
/// @notice Modifier to ensure the provided verifier type is one of the valid enum values.
156156
modifier validVerifierType(IAlignedProofAggregationService.VerifierType verifierType) {
157157
uint8 v = uint8(verifierType);
158-
if (v == uint8(IAlignedProofAggregationService.VerifierType.SP1) ||
159-
v == uint8(IAlignedProofAggregationService.VerifierType.RISC0)){
158+
if (v != uint8(IAlignedProofAggregationService.VerifierType.SP1) &&
159+
v != uint8(IAlignedProofAggregationService.VerifierType.RISC0)){
160160
revert IAlignedProofAggregationService.InvalidVerifierType(v);
161161
}
162162

0 commit comments

Comments
 (0)