We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c9ec6e commit 09e01ceCopy full SHA for 09e01ce
1 file changed
contracts/src/core/AlignedProofAggregationService.sol
@@ -154,10 +154,9 @@ contract AlignedProofAggregationService is
154
155
/// @notice Modifier to ensure the provided verifier type is one of the valid enum values.
156
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);
+ if (verifierType != IAlignedProofAggregationService.VerifierType.SP1 &&
+ verifierType != IAlignedProofAggregationService.VerifierType.RISC0){
+ revert IAlignedProofAggregationService.InvalidVerifierType(uint8(verifierType));
161
}
162
163
_;
0 commit comments