File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -154,10 +154,9 @@ contract AlignedProofAggregationService is
154154
155155 /// @notice Modifier to ensure the provided verifier type is one of the valid enum values.
156156 modifier onValidVerifierType (IAlignedProofAggregationService.VerifierType verifierType ) {
157- uint8 v = uint8 (verifierType);
158- if (v != uint8 (IAlignedProofAggregationService.VerifierType.SP1) &&
159- v != uint8 (IAlignedProofAggregationService.VerifierType.RISC0)){
160- revert IAlignedProofAggregationService.InvalidVerifierType (v);
157+ if (verifierType != IAlignedProofAggregationService.VerifierType.SP1 &&
158+ verifierType != IAlignedProofAggregationService.VerifierType.RISC0){
159+ revert IAlignedProofAggregationService.InvalidVerifierType (uint8 (verifierType));
161160 }
162161
163162 _;
You can’t perform that action at this time.
0 commit comments