Set exception flag to 1.

This commit is contained in:
Linda Guiga 2023-08-07 18:39:55 +01:00
parent b2626fdc71
commit 017e621778
No known key found for this signature in database

View File

@ -708,6 +708,8 @@ pub(crate) fn generate_exception<F: Field>(
return Err(ProgramError::GasLimitError);
}
row.op.exception = F::ONE;
let disallowed_len = F::from_canonical_usize(MAX_USER_STACK_SIZE + 1);
let diff = row.stack_len - disallowed_len;
if let Some(inv) = diff.try_inverse() {