diff --git a/crates/examples/examples/simple_network_example.rs b/crates/examples/examples/simple_network_example.rs index 8871869b9..2c4881465 100644 --- a/crates/examples/examples/simple_network_example.rs +++ b/crates/examples/examples/simple_network_example.rs @@ -17,7 +17,7 @@ async fn main() -> Result<(), Box> { let network = orchestrator.spawn(config).await?; println!("🚀🚀🚀🚀 network deployed"); - let client = network.get_node("alice").unwrap().client(); + let client = network.get_node("alice")?.client(); let mut blocks = client.blocks().subscribe_finalized().await?; while let Some(block) = blocks.next().await { println!("Block #{}", block?.header().number);