From 8960d0f32d5a727f35623178c0ca2dae22eb1633 Mon Sep 17 00:00:00 2001 From: Mengran Lan Date: Thu, 18 Jul 2024 23:13:01 +0800 Subject: [PATCH 1/2] fix(prover): fix panic issue when trying to get curie's bundle vk (#1449) --- prover/src/zk_circuits_handler.rs | 1 + prover/src/zk_circuits_handler/curie.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/prover/src/zk_circuits_handler.rs b/prover/src/zk_circuits_handler.rs index 936d6d6387..3b257ebfa1 100644 --- a/prover/src/zk_circuits_handler.rs +++ b/prover/src/zk_circuits_handler.rs @@ -167,6 +167,7 @@ impl<'a> CircuitsHandlerProvider<'a> { ); vk }) + .filter(|vk| vk.len() > 0) .collect::>() }) .collect::>() diff --git a/prover/src/zk_circuits_handler/curie.rs b/prover/src/zk_circuits_handler/curie.rs index 39c38e3cd3..c3b3a1966f 100644 --- a/prover/src/zk_circuits_handler/curie.rs +++ b/prover/src/zk_circuits_handler/curie.rs @@ -201,6 +201,7 @@ impl CircuitsHandler for CurieHandler { .batch_prover .as_ref() .and_then(|prover| prover.borrow().get_vk()), + TaskType::Bundle => None, _ => unreachable!(), } } From c34883e0aac9f774509f02d30fa7b2d8c4527ffb Mon Sep 17 00:00:00 2001 From: Mengran Lan Date: Thu, 18 Jul 2024 23:26:30 +0800 Subject: [PATCH 2/2] fix lint issue (#1450) --- prover/src/zk_circuits_handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prover/src/zk_circuits_handler.rs b/prover/src/zk_circuits_handler.rs index 3b257ebfa1..db254e2abb 100644 --- a/prover/src/zk_circuits_handler.rs +++ b/prover/src/zk_circuits_handler.rs @@ -167,7 +167,7 @@ impl<'a> CircuitsHandlerProvider<'a> { ); vk }) - .filter(|vk| vk.len() > 0) + .filter(|vk| !vk.is_empty()) .collect::>() }) .collect::>()