From b140002b2c292e889022215da231f554338a907a Mon Sep 17 00:00:00 2001 From: Ammar Arif Date: Wed, 9 Oct 2024 13:38:33 -0400 Subject: [PATCH] add starknet as default rpc api --- crates/katana/node/src/config/rpc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/katana/node/src/config/rpc.rs b/crates/katana/node/src/config/rpc.rs index 79c72eb610..bd1d893d39 100644 --- a/crates/katana/node/src/config/rpc.rs +++ b/crates/katana/node/src/config/rpc.rs @@ -37,11 +37,11 @@ impl RpcConfig { impl Default for RpcConfig { fn default() -> Self { Self { + allowed_origins: None, addr: DEFAULT_RPC_ADDR, port: DEFAULT_RPC_PORT, max_connections: DEFAULT_RPC_MAX_CONNECTIONS, - allowed_origins: None, - apis: HashSet::new(), + apis: HashSet::from([ApiKind::Starknet]), } } }