Skip to content

Commit

Permalink
execute queue when new token is registered
Browse files Browse the repository at this point in the history
  • Loading branch information
lambda-0x committed Oct 2, 2024
1 parent a7e55ce commit a0d2834
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/torii/core/src/sql/erc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ impl Sql {

if !token_exists {
self.register_erc20_token_metadata(contract_address, &token_id, provider).await?;
self.query_queue.execute_all().await?;

Check warning on line 33 in crates/torii/core/src/sql/erc.rs

View check run for this annotation

Codecov / codecov/patch

crates/torii/core/src/sql/erc.rs#L33

Added line #L33 was not covered by tests
}

self.store_erc_transfer_event(
Expand Down Expand Up @@ -82,6 +83,7 @@ impl Sql {

if !token_exists {
self.register_erc721_token_metadata(contract_address, &token_id, provider).await?;
self.query_queue.execute_all().await?;

Check warning on line 86 in crates/torii/core/src/sql/erc.rs

View check run for this annotation

Codecov / codecov/patch

crates/torii/core/src/sql/erc.rs#L86

Added line #L86 was not covered by tests
}

self.store_erc_transfer_event(
Expand Down

0 comments on commit a0d2834

Please sign in to comment.