diff --git a/rindexer_rust_playground/rindexer.yaml b/rindexer_rust_playground/rindexer.yaml index ab165f07..0cb9c9ee 100644 --- a/rindexer_rust_playground/rindexer.yaml +++ b/rindexer_rust_playground/rindexer.yaml @@ -3,9 +3,11 @@ project_type: rust networks: - name: ethereum chain_id: 1 + kind: Rpc rpc: https://mainnet.gateway.tenderly.co - name: base chain_id: 8453 + kind: Rpc rpc: https://mainnet.base.org storage: postgres: diff --git a/rindexer_rust_playground/src/rindexer_lib/typings/networks.rs b/rindexer_rust_playground/src/rindexer_lib/typings/networks.rs index 30043f5d..788cb8e8 100644 --- a/rindexer_rust_playground/src/rindexer_lib/typings/networks.rs +++ b/rindexer_rust_playground/src/rindexer_lib/typings/networks.rs @@ -24,8 +24,7 @@ fn create_shadow_client( "X-SHADOW-API-KEY", public_read_env_value("RINDEXER_PHANTOM_API_KEY").unwrap().parse().unwrap(), ); - let url = rpc_url.parse().unwrap(); - create_jsonrpc_client(url, compute_units_per_second, max_block_range, header) + create_jsonrpc_client(rpc_url.parse().unwrap(), compute_units_per_second, max_block_range, header) .and_then(|client| Ok(client as Arc)) }