Skip to content

Commit

Permalink
Fix Stateful for FriReducedOpeningChip (#1218)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyunyunyunyu authored Jan 15, 2025
1 parent 466236a commit 66a8134
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extensions/native/circuit/src/fri/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ where
impl<F: PrimeField32> Stateful<Vec<u8>> for FriReducedOpeningChip<F> {
fn load_state(&mut self, state: Vec<u8>) {
self.records = bitcode::deserialize(&state).unwrap();
self.height = self.records.iter().map(|record| record.a_reads.len()).sum();
}

fn store_state(&self) -> Vec<u8> {
Expand Down

0 comments on commit 66a8134

Please sign in to comment.