Skip to content

Commit 91797bd

Browse files
committed
Fix compilations issues
1 parent 88e0326 commit 91797bd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

crates/batcher/src/types/batch_queue.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ fn calculate_fee_per_proof(batch_len: usize, gas_price: U256, constant_gas_cost:
215215

216216
#[cfg(test)]
217217
mod test {
218-
use super::{try_build_batch, BatchQueue, BatchQueueEntry, BatchQueueEntryPriority};
218+
use crate::types::batch_queue::extract_batch_directly;
219+
220+
use super::{BatchQueue, BatchQueueEntry, BatchQueueEntryPriority};
219221
use aligned_sdk::common::constants::DEFAULT_CONSTANT_GAS_COST;
220222
use aligned_sdk::common::types::{
221223
NoncedVerificationData, ProvingSystemId, VerificationData, VerificationDataCommitment,
@@ -1047,8 +1049,8 @@ mod test {
10471049
let batch_size_limit = 5_000_000; // 5MB
10481050
let gas_price = U256::from(1);
10491051

1050-
let finalized_batch = try_build_batch(
1051-
batch_queue.clone(),
1052+
let finalized_batch = extract_batch_directly(
1053+
&mut batch_queue,
10521054
gas_price,
10531055
batch_size_limit,
10541056
50, // max proof qty

0 commit comments

Comments
 (0)