Skip to content

Commit

Permalink
chore: nit
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdud007 committed Nov 14, 2024
1 parent 3a64c6b commit 289b588
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions hdp/src/provider/starknet/from_keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,5 @@ mod tests {
let duration = start_fetch.elapsed();
println!("Time taken (Total Proofs Fetch): {:?}", duration);
assert_eq!(proofs.mmr_with_headers[0].headers.len(), 6);

// assert_eq!(proofs.storages[0].proofs.len(), 6);
}
}
3 changes: 0 additions & 3 deletions hdp/src/provider/starknet/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,9 @@ async fn pathfinder_get_proof(
}
});

println!("request: {:?}", request);

let response = provider.post(url).json(&request).send().await?;
let response_json =
serde_json::from_str::<serde_json::Value>(&response.text().await?)?["result"].clone();
println!("response_json: {:?}", response_json);
let get_proof_output: GetProofOutput = serde_json::from_value(response_json)?;
Ok(get_proof_output)
}
Expand Down

0 comments on commit 289b588

Please sign in to comment.