@@ -389,8 +389,13 @@ impl OptionGetter<L1ExecutionClient> for App {
389
389
impl OptionGetter < ExecutionClient > for App {
390
390
fn generate ( & self ) -> Option < ExecutionClient > {
391
391
let cfg = self . cfg . get ( self ) ;
392
+ let scroll_endpoint = match & cfg. scroll_endpoint {
393
+ Some ( scroll_endpoint) if scroll_endpoint. is_empty ( ) => return None ,
394
+ None => return None ,
395
+ Some ( scroll_endpoint) => scroll_endpoint,
396
+ } ;
392
397
let mut mix = MixRpcClient :: new ( get_timeout ( cfg. l2_timeout_secs ) ) ;
393
- mix. add_endpoint ( & self . alive , & [ cfg . l2 . as_ref ( ) ? . clone ( ) ] ) . unwrap ( ) ;
398
+ mix. add_endpoint ( & self . alive , & [ scroll_endpoint . clone ( ) ] ) . unwrap ( ) ;
394
399
Some ( ExecutionClient :: new ( mix) )
395
400
}
396
401
}
@@ -402,10 +407,10 @@ impl Getter<L2ChainID> for App {
402
407
let l2 = self . l2_el . option_get ( self ) ;
403
408
L2ChainID ( match l2. as_ref ( ) {
404
409
Some ( l2) => l2. chain_id ( ) . unwrap ( ) ,
405
- None => match self . cfg . get ( self ) . l2_chain_id {
410
+ None => match self . cfg . get ( self ) . scroll_chain_id {
406
411
Some ( chain_id) => chain_id,
407
412
None => panic ! (
408
- "config error: missing both l2 and l2_chain_id , should at least provide one"
413
+ "config error: missing both scroll_endpoint and scroll_chain_id , should at least provide one"
409
414
) ,
410
415
} ,
411
416
} )
0 commit comments