From db767df03a81faac3a41da9586b3ebe9d291cbe7 Mon Sep 17 00:00:00 2001 From: Larko <59736843+Larkooo@users.noreply.github.com> Date: Tue, 22 Oct 2024 14:57:09 -0400 Subject: [PATCH] fix(torii-grpc): subscribe indexer (#2563) --- crates/torii/grpc/src/server/subscriptions/indexer.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/torii/grpc/src/server/subscriptions/indexer.rs b/crates/torii/grpc/src/server/subscriptions/indexer.rs index 9c4281afe0..11271ce970 100644 --- a/crates/torii/grpc/src/server/subscriptions/indexer.rs +++ b/crates/torii/grpc/src/server/subscriptions/indexer.rs @@ -46,8 +46,7 @@ impl IndexerManager { let id = rand::thread_rng().gen::(); let (sender, receiver) = channel(1); - let mut statement = - "SELECT head, tps, last_block_timestamp, contract_address FROM contracts".to_string(); + let mut statement = "SELECT * FROM contracts".to_string(); let contracts: Vec = if contract_address != Felt::ZERO { statement += " WHERE id = ?";