Skip to content

Commit

Permalink
Revert "fix: return correct witness inputs (#2770)"
Browse files Browse the repository at this point in the history
This reverts commit 2516e2e.
  • Loading branch information
slowli committed Sep 3, 2024
1 parent ba9cc7b commit 50ff4cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/node/external_proof_integration_api/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub(crate) struct ProofGenerationDataResponse(ProofGenerationData);
impl IntoResponse for ProofGenerationDataResponse {
fn into_response(self) -> Response {
let l1_batch_number = self.0.l1_batch_number;
let data = match bincode::serialize(&self.0.witness_input_data) {
let data = match bincode::serialize(&self.0) {
Ok(data) => data,
Err(err) => {
return ProcessorError::Serialization(err).into_response();
Expand Down Expand Up @@ -171,7 +171,7 @@ impl Processor {
return Err(ProcessorError::BatchNotReady(l1_batch_number));
}

self.proof_generation_data_for_existing_batch_internal(l1_batch_number)
self.proof_generation_data_for_existing_batch_internal(latest_available_batch)
.await
.map(ProofGenerationDataResponse)
}
Expand Down

0 comments on commit 50ff4cd

Please sign in to comment.