Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions crates/host/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ impl FlushStrategy for StandardHostEnvFlushStrategy {
}

fn maximal_group(&self, transaction: TransactionId) -> Option<usize> {
// 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,
Expand All @@ -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()
}
Expand Down