Skip to content

Commit

Permalink
Check call result
Browse files Browse the repository at this point in the history
  • Loading branch information
rakanalh committed Dec 20, 2024
1 parent 68d1d14 commit 065212f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions crates/light-client-prover/src/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ pub fn run_circuit<DaV: DaVerifier, G: ZkvmGuest>(
if let Ok(data) = data {
match data {
DaDataLightClient::Complete(proof) => {
if process_complete_proof::<DaV, G>(
let result = process_complete_proof::<DaV, G>(
proof,
batch_proof_method_id,
last_l2_height,
&mut initial_to_final,
)
.is_err()
{
);

if result.is_err() {
continue;
}
}
Expand All @@ -130,14 +130,14 @@ pub fn run_circuit<DaV: DaVerifier, G: ZkvmGuest>(
.flatten()
.collect::<Vec<_>>();

if process_complete_proof::<DaV, G>(
let result = process_complete_proof::<DaV, G>(
complete_proof,
batch_proof_method_id,
last_l2_height,
&mut initial_to_final,
)
.is_err()
{
);

if result.is_err() {
continue;
}

Expand Down

0 comments on commit 065212f

Please sign in to comment.