diff --git a/cmd/soroban-cli/src/commands/tx/send.rs b/cmd/soroban-cli/src/commands/tx/send.rs index 7eb5e547d..7f74dd3a9 100644 --- a/cmd/soroban-cli/src/commands/tx/send.rs +++ b/cmd/soroban-cli/src/commands/tx/send.rs @@ -47,7 +47,7 @@ impl NetworkRunnable for Cmd { type Result = GetTransactionResponse; async fn run_against_rpc_server( &self, - _: Option<&global::Args>, + globals: Option<&global::Args>, config: Option<&config::Args>, ) -> Result { let network = if let Some(config) = config { @@ -59,10 +59,12 @@ impl NetworkRunnable for Cmd { let tx_env = super::xdr::tx_envelope_from_stdin()?; match super::xdr::unwrap_envelope_v1(tx_env.clone()).map(|tx| transaction_hash(&tx, &network.network_passphrase)) { Ok(Ok(hash)) => { - println!( - "Transaction Hash: {}", - hex::encode(hash) - ); + if !globals.map_or(false, |g| g.quiet) { + println!( + "Transaction Hash: {}", + hex::encode(hash) + ); + } } _ => { }