Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ec2 committed Jan 24, 2024
1 parent 27bdb04 commit 4ef20b3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lightclient-circuits/src/sync_step_circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,8 @@ impl<S: Spec, F: Field> StepCircuit<S, F> {
let attested_header_root = args
.attested_header
.clone()
// TODO: I really dont like how were doing hash_tree_root here
.hash_tree_root()
.unwrap()
.map_err(|e| Error::Synthesis)?
.as_ref()
.iter()
.map(|v| builder.main().load_witness(F::from(*v as u64)))
Expand Down Expand Up @@ -152,9 +151,8 @@ impl<S: Spec, F: Field> StepCircuit<S, F> {
let finalized_header_root = args
.finalized_header
.clone()
// TODO: I really dont like how were doing hash_tree_root here
.hash_tree_root()
.unwrap()
.map_err(|e| Error::Synthesis)?
.as_ref()
.iter()
.map(|v| builder.main().load_witness(F::from(*v as u64)))
Expand Down

0 comments on commit 4ef20b3

Please sign in to comment.