From 6dab3bece980f30ed6eb4e78eb579d6fee57c778 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 27 Aug 2024 18:29:40 +0000 Subject: [PATCH] fix --- client-programs/fault-proof/src/main.rs | 2 ++ client-programs/range/src/main.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/client-programs/fault-proof/src/main.rs b/client-programs/fault-proof/src/main.rs index 2589816c..dd0492c5 100644 --- a/client-programs/fault-proof/src/main.rs +++ b/client-programs/fault-proof/src/main.rs @@ -43,6 +43,8 @@ fn main() { if #[cfg(target_os = "zkvm")] { println!("cycle-tracker-start: boot-load"); let boot_info_with_bytes_config = sp1_zkvm::io::read::(); + + // Converts the rollup config bytes into a rollupConfigHash before committing the BootInfoStruct. let boot_info_struct = BootInfoStruct::from(boot_info_with_bytes_config.clone()); sp1_zkvm::io::commit::(&boot_info_struct); diff --git a/client-programs/range/src/main.rs b/client-programs/range/src/main.rs index 1ad2eb78..daf7a354 100644 --- a/client-programs/range/src/main.rs +++ b/client-programs/range/src/main.rs @@ -51,6 +51,8 @@ fn main() { if #[cfg(target_os = "zkvm")] { println!("cycle-tracker-start: boot-load"); let boot_info_with_bytes_config = sp1_zkvm::io::read::(); + + // Converts the rollup config bytes into a rollupConfigHash before committing the BootInfoStruct. let boot_info_struct = BootInfoStruct::from(boot_info_with_bytes_config.clone()); sp1_zkvm::io::commit::(&boot_info_struct);