From 065212f36f739a14d5ad1c704a933ca937682f32 Mon Sep 17 00:00:00 2001 From: Rakan Alhneiti Date: Fri, 20 Dec 2024 13:40:52 +0300 Subject: [PATCH] Check call result --- crates/light-client-prover/src/circuit.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/light-client-prover/src/circuit.rs b/crates/light-client-prover/src/circuit.rs index 3f07bd2eb..d553007c2 100644 --- a/crates/light-client-prover/src/circuit.rs +++ b/crates/light-client-prover/src/circuit.rs @@ -104,14 +104,14 @@ pub fn run_circuit( if let Ok(data) = data { match data { DaDataLightClient::Complete(proof) => { - if process_complete_proof::( + let result = process_complete_proof::( proof, batch_proof_method_id, last_l2_height, &mut initial_to_final, - ) - .is_err() - { + ); + + if result.is_err() { continue; } } @@ -130,14 +130,14 @@ pub fn run_circuit( .flatten() .collect::>(); - if process_complete_proof::( + let result = process_complete_proof::( complete_proof, batch_proof_method_id, last_l2_height, &mut initial_to_final, - ) - .is_err() - { + ); + + if result.is_err() { continue; }