Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
[gavin-ygy] committed Sep 23, 2024
1 parent 88f1c68 commit 0b0a08a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions host-program/src/bin/add-go-prove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,20 +98,21 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.write(prover_result.solidity_verifier.as_slice());
} else {
if prover_result.output_stream.is_empty() {
log::info!("output_stream.len() is too short: {}", prover_result.output_stream.len());
log::info!(
"output_stream.len() is too short: {}",
prover_result.output_stream.len()
);
return Ok(());
}
log::info!("Executing the guest program successfully.");
let ret_data: Data =
bincode::deserialize_from(prover_result.output_stream.as_slice())
.expect("deserialization failed");
.expect("deserialization failed");
log::info!("ret_data: {:?}", ret_data);
}

}
Ok(None) => {
log::info!("Failed to generate proof.The result is None.");
return Ok(None);
}
Err(e) => {
log::info!("Failed to generate proof. error: {}", e);
Expand Down

0 comments on commit 0b0a08a

Please sign in to comment.