From 72df63e4658324545a74cad4c8c4a03a0e7e4287 Mon Sep 17 00:00:00 2001 From: Robin Salen <30937548+Nashtare@users.noreply.github.com> Date: Thu, 28 Mar 2024 21:41:12 +0900 Subject: [PATCH] Update prover default features (#46) * Update Cargo.toml Remove test-only from default features. * Fix Literal(proof) * Fix Clippy --------- Co-authored-by: Linda Guiga --- zero_bin/prover/Cargo.toml | 2 +- zero_bin/prover/src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/zero_bin/prover/Cargo.toml b/zero_bin/prover/Cargo.toml index ca0cb86c2..fc7fd24e8 100644 --- a/zero_bin/prover/Cargo.toml +++ b/zero_bin/prover/Cargo.toml @@ -22,5 +22,5 @@ futures = { workspace = true } ops = { path = "../ops" } [features] -default = ["test_only"] +default = [] test_only = ["ops/test_only"] \ No newline at end of file diff --git a/zero_bin/prover/src/lib.rs b/zero_bin/prover/src/lib.rs index 0789423e0..abf424a95 100644 --- a/zero_bin/prover/src/lib.rs +++ b/zero_bin/prover/src/lib.rs @@ -1,5 +1,6 @@ use anyhow::Result; use ethereum_types::U256; +#[cfg(feature = "test_only")] use futures::stream::TryStreamExt; use ops::TxProof; use paladin::{ @@ -56,7 +57,7 @@ impl ProverInput { intern: p, }); - let block_proof = paladin::Literal(proof) + let block_proof = paladin::directive::Literal(proof) .map(&ops::BlockProof { prev }) .run(runtime) .await?;