From a5a77ace672582190c06cede75c9aac449f3a94f Mon Sep 17 00:00:00 2001 From: Olexandr88 Date: Fri, 30 Jan 2026 19:16:19 +0200 Subject: [PATCH] fix: cast TransactionId to usize in maximal_group Signed-off-by: Olexandr88 --- crates/host/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/host/src/lib.rs b/crates/host/src/lib.rs index 6d9753e9..7c6cb414 100644 --- a/crates/host/src/lib.rs +++ b/crates/host/src/lib.rs @@ -181,7 +181,8 @@ impl FlushStrategy for StandardHostEnvFlushStrategy { } fn maximal_group(&self, transaction: TransactionId) -> Option { - // FIXME: add usize to zkwasm-host-circuits repo + // Cast TransactionId to usize (temporary until upstream From impl added) + let index = transaction as usize; fn optype_from_usize(index: usize) -> OpType { match index { // 0 => OpType::BLS381PAIR, @@ -195,7 +196,7 @@ impl FlushStrategy for StandardHostEnvFlushStrategy { _ => unreachable!(), } } - optype_from_usize(transaction) + optype_from_usize(index) .new_plugin_flush_strategy(self.k) .maximal_group() }