From 9c2bac8e31008d4dca19ab3946515bdafa2cb6a3 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 19 Dec 2024 15:45:51 +0100 Subject: [PATCH] rename variable --- bin/odyssey/src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/odyssey/src/main.rs b/bin/odyssey/src/main.rs index e20ee82..ea3e031 100644 --- a/bin/odyssey/src/main.rs +++ b/bin/odyssey/src/main.rs @@ -61,7 +61,7 @@ fn main() { .as_ref() .map(>::default_signer_address); - let node = builder + let handle = builder .with_types_and_provider::>() .with_components(OdysseyNode::components(&rollup_args)) .with_add_ons( @@ -126,12 +126,12 @@ fn main() { .await?; // spawn raw transaction forwarding - let txhandle = node.node.network.transactions_handle().await.unwrap(); + let txhandle = handle.node.network.transactions_handle().await.unwrap(); let raw_txs = - node.node.add_ons_handle.eth_api().eth_api().subscribe_to_raw_transactions(); - node.node.task_executor.spawn(Box::pin(forward_raw_transactions(txhandle, raw_txs))); + handle.node.add_ons_handle.eth_api().eth_api().subscribe_to_raw_transactions(); + handle.node.task_executor.spawn(Box::pin(forward_raw_transactions(txhandle, raw_txs))); - node.wait_for_node_exit().await + handle.wait_for_node_exit().await }) { eprintln!("Error: {err:?}");