Skip to content

Commit 2272f0a

Browse files
committed
fix rebase master
1 parent a2f98ed commit 2272f0a

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

crates/integration/src/testers/bundle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl BundleTaskGenerator {
133133
.iter()
134134
.map(|&b| b as u32)
135135
.collect::<Vec<_>>(),
136-
commitment: commitment.clone(),
136+
commitment,
137137
};
138138
batch_proofs.push(proof);
139139
batch_infos.push(info);

crates/integration/src/testers/chunk.rs

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
use crate::{
2-
PartialProvingTask, ProverTester, TaskProver, guest_version, prove_verify, testdata_fork_directory,
3-
tester_execute, testers::PATH_TESTDATA, testing_hardfork, testing_version,
4-
utils::metadata_from_chunk_witnesses,
2+
GUEST_VERSION, PartialProvingTask, ProverTester, TaskProver, prove_verify,
3+
testdata_fork_directory, tester_execute, testers::PATH_TESTDATA, testing_hardfork,
4+
testing_version, utils::metadata_from_chunk_witnesses,
55
};
6-
use openvm_sdk::StdIn;
76
use rayon::iter::{IntoParallelIterator, ParallelIterator};
87
use sbv_core::BlockWitness;
98
use sbv_primitives::{B256, types::consensus::TxL1Message};
9+
use scroll_zkvm_prover::utils::read_json;
1010
use scroll_zkvm_prover::utils::vm::ExecutionResult;
11-
use scroll_zkvm_prover::{Prover, utils::read_json};
1211
use scroll_zkvm_types::chunk::ChunkWitnessUpgradeCompact;
1312
use scroll_zkvm_types::{
1413
chunk::{ChunkInfo, ChunkWitness, LegacyChunkWitness, SecretKey},
@@ -20,12 +19,6 @@ use std::{
2019
path::{Path, PathBuf},
2120
};
2221

23-
use crate::{
24-
PartialProvingTask, ProverTester, prove_verify, testdata_fork_directory, tester_execute,
25-
testers::PATH_TESTDATA, testing_hardfork, testing_version,
26-
utils::metadata_from_chunk_witnesses,
27-
};
28-
2922
/// Load a file <block_n>.json in the <PATH_BLOCK_WITNESS> directory.
3023
pub fn read_block_witness_from_testdata(block_n: usize) -> eyre::Result<BlockWitness> {
3124
read_block_witness(
@@ -74,11 +67,11 @@ impl PartialProvingTask for ChunkWitness {
7467
Ok(bytes.to_vec())
7568
}
7669

77-
fn write_guest_input(&self, stdin: &mut StdIn) -> eyre::Result<()>
70+
fn archive(&self) -> eyre::Result<Vec<u8>>
7871
where
7972
Self: Sized,
8073
{
81-
let bytes: Vec<u8> = match guest_version().as_str() {
74+
let bytes: Vec<u8> = match GUEST_VERSION.as_ref() {
8275
"0.5.2" => self.legacy_rkyv_archive()?,
8376
"0.6.0-rc.6" => {
8477
let config = bincode::config::standard();
@@ -92,8 +85,7 @@ impl PartialProvingTask for ChunkWitness {
9285
bincode::serde::encode_to_vec(self, config)?
9386
}
9487
};
95-
stdin.write_bytes(&bytes);
96-
Ok(())
88+
Ok(bytes)
9789
}
9890

9991
fn fork_name(&self) -> ForkName {

crates/integration/src/utils/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ pub fn build_batch_witnesses(
322322
.iter()
323323
.map(|&b| b as u32)
324324
.collect::<Vec<_>>(),
325-
commitment: commitment.clone(),
325+
commitment,
326326
}
327327
})
328328
.collect::<Vec<_>>();
@@ -395,7 +395,7 @@ pub fn build_batch_witnesses_validium(
395395
.iter()
396396
.map(|&b| b as u32)
397397
.collect::<Vec<_>>(),
398-
commitment: commitment.clone(),
398+
commitment,
399399
}
400400
})
401401
.collect::<Vec<_>>();

0 commit comments

Comments
 (0)