Skip to content

Commit 01c8884

Browse files
feat: allow assignment of values from previous phase to next phase (#26)
1 parent 1dd2090 commit 01c8884

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

halo2_proofs/src/plonk/prover.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,10 @@ where
238238
A: FnOnce() -> AR,
239239
AR: Into<String>,
240240
{
241-
// Ignore assignment of advice column in different phase than current one.
242-
if self.current_phase != column.column_type().phase {
241+
// Ignore assignment of advice column in later phase than current one.
242+
// Okay: Assigning Phase 1 value to Phase 2 column
243+
// Not okay: Assigning Phase 2 value to Phase 1 column
244+
if self.current_phase < column.column_type().phase {
243245
return Ok(());
244246
}
245247

0 commit comments

Comments
 (0)