File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11use crate :: host:: single:: config:: Config ;
22use crate :: server:: { start_http_server_task, DerivationState } ;
3+ use anyhow:: Context ;
34use base64:: Engine ;
45use clap:: Parser ;
56use kona_registry:: ROLLUP_CONFIGS ;
@@ -38,7 +39,10 @@ async fn main() -> anyhow::Result<()> {
3839 chain_id
3940 ) ;
4041 let l2_config = l2_client. rollup_config ( ) . await ?;
41- let l1_chain_config = config. l1_chain_config . as_ref ( ) . unwrap ( ) ;
42+ let l1_chain_config = config
43+ . l1_chain_config
44+ . as_ref ( )
45+ . context ( "l1 chain config is required" ) ?;
4246 let decoded = base64:: engine:: general_purpose:: STANDARD . decode ( l1_chain_config) ?;
4347 let l1_chain_config: kona_genesis:: L1ChainConfig = serde_json:: from_slice ( & decoded) ?;
4448 ( Some ( l2_config) , Some ( l1_chain_config) )
You can’t perform that action at this time.
0 commit comments