Skip to content

Commit

Permalink
Update halo2 dependency and fix conditional assignment in codegen.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
alxkzmn committed Dec 18, 2023
1 parent 7b7d469 commit d339725
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2", tag = "v2023_04_20" }
halo2_proofs = { git = "https://github.com/summa-dev/halo2"}
askama = { version = "0.12.0", features = ["config"], default-features = false }
hex = "0.4.3"
ruint = "1"
Expand Down
6 changes: 5 additions & 1 deletion src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ impl<'a> SolidityGenerator<'a> {
fr_to_u256(domain.get_omega_inv().pow_vartime([l]))
};
let num_instances = U256::from(self.num_instances);
let has_accumulator = U256::from(self.acc_encoding.is_some());
let has_accumulator = if self.acc_encoding.is_some() {
U256::from(1)
} else {
U256::from(0)
};
let acc_offset = self
.acc_encoding
.map(|acc_encoding| U256::from(acc_encoding.offset))
Expand Down

0 comments on commit d339725

Please sign in to comment.