Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Dec 19, 2024
1 parent 59f9b13 commit 9c2bac8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/odyssey/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fn main() {
.as_ref()
.map(<EthereumWallet as NetworkWallet<Ethereum>>::default_signer_address);

let node = builder
let handle = builder
.with_types_and_provider::<OdysseyNode, BlockchainProvider2<_>>()
.with_components(OdysseyNode::components(&rollup_args))
.with_add_ons(
Expand Down Expand Up @@ -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:?}");
Expand Down

0 comments on commit 9c2bac8

Please sign in to comment.