Skip to content

Commit

Permalink
feat(torii-indexer): add tests for erc tokens (#3033)
Browse files Browse the repository at this point in the history
* feat(torii-indexer): add tests for erc20

* fmt

* erc721 and 1155 tests

* fmt

* fix address

* fmt

* fixz

* fmt

* fixing up test

* fix: erc20

* fix: grpc

* fix: erc721 test

* fix erc1155 test

* f

* artifacts rm

* fmt

* actions

* fmt

* f

* f

* fix shitty fmt for the 20th time

* kms

* clippy

* erc1155 test
  • Loading branch information
Larkooo authored Feb 17, 2025
1 parent ce8c3f7 commit e205240
Show file tree
Hide file tree
Showing 5 changed files with 464 additions and 46 deletions.
7 changes: 2 additions & 5 deletions crates/torii/grpc/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -838,11 +838,8 @@ impl DojoWorld {
}

let mut query = sqlx::query_as(&query);
for address in &contract_addresses {
query = query.bind(format!("{:#x}", address));
}
for token_id in &token_ids {
query = query.bind(format!("{:#x}", token_id));
for value in bind_values {
query = query.bind(value);
}

let tokens: Vec<Token> =
Expand Down
Loading

0 comments on commit e205240

Please sign in to comment.