diff --git a/crates/torii/core/src/sql/erc.rs b/crates/torii/core/src/sql/erc.rs index 7c644a6616..d859f2d4eb 100644 --- a/crates/torii/core/src/sql/erc.rs +++ b/crates/torii/core/src/sql/erc.rs @@ -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?; } self.store_erc_transfer_event( @@ -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?; } self.store_erc_transfer_event(