Skip to content

Commit d730845

Browse files
committed
wip
1 parent 0856d09 commit d730845

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

crates/node/src/full/mod.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use katana_gateway_client::Client as SequencerGateway;
1515
use katana_metrics::exporters::prometheus::PrometheusRecorder;
1616
use katana_metrics::{Report, Server as MetricsServer};
1717
use katana_pipeline::{Pipeline, PipelineHandle};
18-
use katana_pool::ordering::{FiFo, TipOrdering};
18+
use katana_pool::ordering::TipOrdering;
1919
use katana_provider::providers::db::DbProvider;
2020
use katana_provider::BlockchainProvider;
2121
use katana_rpc::cors::Cors;
@@ -105,10 +105,15 @@ impl Node {
105105

106106
// --- build gateway client
107107

108+
let gateway_client = match config.network {
109+
Network::Mainnet => SequencerGateway::mainnet(),
110+
Network::Sepolia => SequencerGateway::sepolia(),
111+
};
112+
108113
let gateway_client = if let Some(ref key) = config.gateway_api_key {
109-
SequencerGateway::sepolia().with_api_key(key.clone())
114+
gateway_client.with_api_key(key.clone())
110115
} else {
111-
SequencerGateway::sepolia()
116+
gateway_client
112117
};
113118

114119
// --- build transaction pool

crates/rpc/rpc/src/starknet/write.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use katana_rpc_types::broadcasted::{
99
};
1010
use katana_rpc_types::{BroadcastedTx, BroadcastedTxWithChainId};
1111

12+
use super::StarknetApi;
1213
use crate::starknet::pending::PendingBlockProvider;
1314

1415
impl<Pool, PoolTx, Pending> StarknetApi<Pool, Pending>

0 commit comments

Comments
 (0)