From a0d28341fce72e5c93c0ab3bc3e290c860d75bc9 Mon Sep 17 00:00:00 2001 From: lambda-0x <0xlambda@protonmail.com> Date: Wed, 2 Oct 2024 14:52:31 +0530 Subject: [PATCH] execute queue when new token is registered --- crates/torii/core/src/sql/erc.rs | 2 ++ 1 file changed, 2 insertions(+) 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(