From c386a9baab27ceab4496712adc2b8a7303fa80f1 Mon Sep 17 00:00:00 2001 From: Maksim Greshniakov Date: Wed, 2 Oct 2024 15:47:45 +0200 Subject: [PATCH] fix(collator): create special transactions --- collator/src/collator/do_collate.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/collator/src/collator/do_collate.rs b/collator/src/collator/do_collate.rs index ba7d3261f..b9e6b7b18 100644 --- a/collator/src/collator/do_collate.rs +++ b/collator/src/collator/do_collate.rs @@ -1099,10 +1099,7 @@ impl CollatorStdImpl { .await?; } - // FIXME: Minter only mints extra currencies, so this will not work - // TODO: Add `is_zero` to `CurrencyCollection` (but it might be heavy, - // since we must check all dict items) - if !collator_data.value_flow.minted.tokens.is_zero() { + if !collator_data.value_flow.minted.other.is_empty() { self.create_special_transaction( &config.get_minter_address()?, collator_data.value_flow.minted.clone(),