Skip to content

Commit

Permalink
fix bug in static memory address
Browse files Browse the repository at this point in the history
  • Loading branch information
kitounliu committed Nov 22, 2023
1 parent 7b7d469 commit 6bc999d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,11 @@ impl<'a> SolidityGenerator<'a> {
Gwc19 => unimplemented!(),
};

let hash_instance = self.meta.num_advices()[0] * 2 + self.num_instances + 1;

itertools::max(chain![
// Hashing instance and witness commitments
[hash_instance],
// Hashing advice commitments
chain![self.meta.num_advices().into_iter()].map(|n| n * 2 + 1),
// Hashing evaluations
Expand Down

0 comments on commit 6bc999d

Please sign in to comment.