Skip to content

Commit 9dd168d

Browse files
committed
fix
1 parent ed6509e commit 9dd168d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

crates/core/executor/src/executor.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2193,16 +2193,15 @@ impl<'a> Executor<'a> {
21932193

21942194
// Ensure that all proofs were read, otherwise return an error.
21952195
if self.state.proof_stream_ptr != self.state.proof_stream.len() {
2196+
let expected = self.state.proof_stream.len();
2197+
let actual = self.state.proof_stream_ptr;
21962198
tracing::error!(
21972199
"Not all proofs were verified. \
21982200
Expected to verify {expected} proofs, but only {actual} were verified. \
21992201
Make sure you're passing the correct number of proofs \
22002202
and that you're calling verify_sp1_proof for all proofs."
22012203
);
2202-
return Err(ExecutionError::UnverifiedDeferredProofs {
2203-
expected: self.state.proof_stream.len(),
2204-
actual: self.state.proof_stream_ptr,
2205-
});
2204+
return Err(ExecutionError::UnverifiedDeferredProofs { expected, actual });
22062205
}
22072206

22082207
if !self.state.input_stream.is_empty() {

0 commit comments

Comments
 (0)