Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(torii-grpc): subscribe indexer #2563

Merged
merged 2 commits into from
Oct 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions crates/torii/grpc/src/server/subscriptions/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
let id = rand::thread_rng().gen::<usize>();
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();

Check warning on line 49 in crates/torii/grpc/src/server/subscriptions/indexer.rs

View check run for this annotation

Codecov / codecov/patch

crates/torii/grpc/src/server/subscriptions/indexer.rs#L49

Added line #L49 was not covered by tests

let contracts: Vec<ContractUpdated> = if contract_address != Felt::ZERO {
statement += " WHERE id = ?";
Expand Down
Loading