Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Dec 3, 2024
1 parent a3cd439 commit e6422cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions proposer/succinct/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async fn request_span_proof(

// Check if error, otherwise get proof ID.
let proof_id = match res {
Ok(proof_id) => String::from_utf8(proof_id).unwrap(),
Ok(proof_id) => proof_id,
Err(e) => {
log::error!("Failed to request proof: {}", e);
return Err(AppError(anyhow::anyhow!("Failed to request proof: {}", e)));
Expand Down Expand Up @@ -360,7 +360,7 @@ async fn get_proof_status(

let client = NetworkClient::new(&private_key);

let proof_id_bytes = string_to_bytes(&proof_id);
let proof_id_bytes = hex::decode(proof_id)?;

// Time out this request if it takes too long.
let timeout = Duration::from_secs(10);
Expand Down
2 changes: 1 addition & 1 deletion proposer/succinct/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub struct MockProofResponse {

#[derive(Serialize, Deserialize, Debug)]
pub struct ProofResponse {
pub proof_id: String,
pub proof_id: Vec<u8>,
}

#[derive(Debug, Serialize_repr, Deserialize_repr)]
Expand Down

0 comments on commit e6422cf

Please sign in to comment.