We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e76b0e + 8a84249 commit a6f5af9Copy full SHA for a6f5af9
crates/lean_prover/src/verify_execution.rs
@@ -77,7 +77,7 @@ pub fn verify_execution(
77
let log_n_p16 = log2_ceil_usize(n_poseidons_16);
78
let log_n_p24 = log2_ceil_usize(n_poseidons_24);
79
80
- if log_memory > MAX_LOG_MEMORY_SIZE || log_memory < MIN_LOG_MEMORY_SIZE {
+ if !(MIN_LOG_MEMORY_SIZE..=MAX_LOG_MEMORY_SIZE).contains(&log_memory) {
81
return Err(ProofError::InvalidProof);
82
}
83
0 commit comments