Skip to content

Commit

Permalink
Merge branch 'main' into short-flags
Browse files Browse the repository at this point in the history
  • Loading branch information
fnando authored Jan 29, 2025
2 parents 5331463 + 5aa799c commit 488efb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions cmd/soroban-cli/src/commands/contract/deploy/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,12 @@ impl NetworkRunnable for Cmd {
return Ok(TxnResult::Txn(txn));
}

print.globeln("Submitting deploy transaction…");
print.log_transaction(&txn, &network, true)?;
let signed_txn = &config.sign_with_local_key(*txn).await?;
print.globeln("Submitting deploy transaction…");

let get_txn_resp = client
.send_transaction_polling(&config.sign_with_local_key(*txn).await?)
.send_transaction_polling(signed_txn)
.await?
.try_into()?;

Expand Down
7 changes: 3 additions & 4 deletions cmd/soroban-cli/src/commands/contract/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,10 @@ impl NetworkRunnable for Cmd {
return Ok(TxnResult::Txn(txn));
}

print.globeln("Submitting install transaction…");
let signed_txn = &self.config.sign_with_local_key(*txn).await?;

let txn_resp = client
.send_transaction_polling(&self.config.sign_with_local_key(*txn).await?)
.await?;
print.globeln("Submitting install transaction…");
let txn_resp = client.send_transaction_polling(signed_txn).await?;

if args.map_or(true, |a| !a.no_cache) {
data::write(txn_resp.clone().try_into().unwrap(), &network.rpc_uri()?)?;
Expand Down

0 comments on commit 488efb6

Please sign in to comment.