Skip to content

Commit

Permalink
fix: linting and proof layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mohiiit committed Nov 9, 2024
1 parent f227e72 commit 6aa726a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 1 addition & 3 deletions crates/orchestrator/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ pub async fn init_config() -> color_eyre::Result<Arc<Config>> {

let snos_proof_layout = match settings_provider.get_settings_or_panic("SNOS_PROOF_LAYOUT").as_str() {
"dynamic" => {
log::warn!(
"Using dynamic layout for SNOS."
);
log::warn!("Using dynamic layout for SNOS.");
LayoutName::dynamic
}
"starknet_with_keccak" => LayoutName::starknet_with_keccak,
Expand Down
7 changes: 6 additions & 1 deletion crates/prover-clients/sharp-service/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,19 @@ impl SharpClient {
) -> Result<(SharpAddJobResponse, Uuid), SharpError> {
let cairo_key = Uuid::new_v4();

let proof_layout = match proof_layout {
LayoutName::dynamic => "dynamic",
_ => proof_layout.to_str(),
};

let response = self
.client
.request()
.method(Method::POST)
.path("add_job")
.query_param("cairo_job_key", &cairo_key.to_string())
.query_param("offchain_proof", "true")
.query_param("proof_layout", proof_layout.to_str())
.query_param("proof_layout", proof_layout)
.body(encoded_pie)
.send()
.await
Expand Down

0 comments on commit 6aa726a

Please sign in to comment.