From 0552599af01659fedf3490ac660869ac1f2fa320 Mon Sep 17 00:00:00 2001 From: Willem Wyndham Date: Fri, 31 May 2024 09:29:45 -0600 Subject: [PATCH] fix: add check for sim_only --- cmd/crates/soroban-test/tests/it/integration/hello_world.rs | 1 + cmd/soroban-cli/src/commands/contract/deploy/wasm.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/crates/soroban-test/tests/it/integration/hello_world.rs b/cmd/crates/soroban-test/tests/it/integration/hello_world.rs index b61435fa5..4a675b648 100644 --- a/cmd/crates/soroban-test/tests/it/integration/hello_world.rs +++ b/cmd/crates/soroban-test/tests/it/integration/hello_world.rs @@ -25,6 +25,7 @@ async fn invoke_view_with_non_existent_source_account() { } #[tokio::test] +#[allow(clippy::too_many_lines)] async fn invoke() { let sandbox = &TestEnv::new(); let c = soroban_rpc::Client::new(&sandbox.rpc_url).unwrap(); diff --git a/cmd/soroban-cli/src/commands/contract/deploy/wasm.rs b/cmd/soroban-cli/src/commands/contract/deploy/wasm.rs index 0b944c78a..b901b0ce5 100644 --- a/cmd/soroban-cli/src/commands/contract/deploy/wasm.rs +++ b/cmd/soroban-cli/src/commands/contract/deploy/wasm.rs @@ -127,7 +127,7 @@ impl NetworkRunnable for Cmd { ) -> Result, Error> { let config = config.unwrap_or(&self.config); let wasm_hash = if let Some(wasm) = &self.wasm { - let hash = if self.fee.build_only { + let hash = if self.fee.build_only || self.fee.sim_only { wasm::Args { wasm: wasm.clone() }.hash()? } else { install::Cmd {