We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8573db commit 883984cCopy full SHA for 883984c
server/src/main.rs
@@ -1,3 +1,4 @@
1
+use anyhow::Context;
2
use crate::host::single::config::Config;
3
use crate::server::{start_http_server_task, DerivationState};
4
use base64::Engine;
@@ -38,7 +39,7 @@ async fn main() -> anyhow::Result<()> {
38
39
chain_id
40
);
41
let l2_config = l2_client.rollup_config().await?;
- let l1_chain_config = config.l1_chain_config.as_ref().unwrap();
42
+ let l1_chain_config = config.l1_chain_config.as_ref().context("l1 chain config is required")?;
43
let decoded = base64::engine::general_purpose::STANDARD.decode(l1_chain_config)?;
44
let l1_chain_config: kona_genesis::L1ChainConfig = serde_json::from_slice(&decoded)?;
45
(Some(l2_config), Some(l1_chain_config))
0 commit comments