diff --git a/bin/client/Cargo.toml b/bin/client/Cargo.toml index 0d8f004e..42013eb5 100644 --- a/bin/client/Cargo.toml +++ b/bin/client/Cargo.toml @@ -29,7 +29,7 @@ serde_json = { version = "1.0.125", default-features = false } kona-common = { path = "../../crates/common", version = "0.0.2" } kona-common-proc = { path = "../../crates/common-proc", version = "0.0.2" } kona-preimage = { path = "../../crates/preimage", version = "0.0.2" } -kona-primitives = { path = "../../crates/primitives", version = "0.0.1" } +kona-primitives = { path = "../../crates/primitives", version = "0.0.1", features = ["serde"] } kona-mpt = { path = "../../crates/mpt", version = "0.0.2" } kona-derive = { path = "../../crates/derive", default-features = false, version = "0.0.2" } kona-executor = { path = "../../crates/executor", version = "0.0.1" } diff --git a/bin/client/src/boot.rs b/bin/client/src/boot.rs index 2ec61ad0..7a3bc605 100644 --- a/bin/client/src/boot.rs +++ b/bin/client/src/boot.rs @@ -5,6 +5,7 @@ use alloy_primitives::{B256, U256}; use anyhow::{anyhow, Result}; use kona_preimage::{PreimageKey, PreimageOracleClient}; use kona_primitives::RollupConfig; +use serde::{Deserialize, Serialize}; use tracing::warn; /// The local key ident for the L1 head hash. @@ -36,7 +37,7 @@ pub const L2_ROLLUP_CONFIG_KEY: U256 = U256::from_be_slice(&[6]); /// **User submitted inputs:** /// - `l2_claim`: The L2 output root claim. /// - `l2_claim_block`: The L2 claim block number. -#[derive(Debug, Clone, PartialEq, Eq)] +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] pub struct BootInfo { /// The L1 head hash containing the safe L2 chain data that may reproduce the L2 head hash. pub l1_head: B256,