diff --git a/crates/orchestrator/src/config.rs b/crates/orchestrator/src/config.rs index 53897316..71f818e7 100644 --- a/crates/orchestrator/src/config.rs +++ b/crates/orchestrator/src/config.rs @@ -121,9 +121,7 @@ pub async fn init_config() -> color_eyre::Result> { 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, diff --git a/crates/prover-clients/sharp-service/src/client.rs b/crates/prover-clients/sharp-service/src/client.rs index 7e6e2985..52c23fe4 100644 --- a/crates/prover-clients/sharp-service/src/client.rs +++ b/crates/prover-clients/sharp-service/src/client.rs @@ -62,6 +62,11 @@ 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() @@ -69,7 +74,7 @@ impl SharpClient { .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