Skip to content

Commit

Permalink
no unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Oct 20, 2023
1 parent 97580de commit 82a0b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/examples/examples/simple_network_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
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);
Expand Down

0 comments on commit 82a0b9a

Please sign in to comment.