Skip to content

Commit

Permalink
fix: add check for sim_only
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed May 31, 2024
1 parent 0053862 commit 0552599
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/commands/contract/deploy/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl NetworkRunnable for Cmd {
) -> Result<TxnResult<String>, 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 {
Expand Down

0 comments on commit 0552599

Please sign in to comment.