Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMD committed Nov 20, 2024
1 parent b874c73 commit d51bd7a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions cmd/soroban-cli/src/commands/tx/send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,15 @@ impl NetworkRunnable for Cmd {
};
let client = network.rpc_client()?;
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)) {
match super::xdr::unwrap_envelope_v1(tx_env.clone())
.map(|tx| transaction_hash(&tx, &network.network_passphrase))
{
Ok(Ok(hash)) => {
if !globals.map_or(false, |g| g.quiet) {
println!(
"Transaction Hash: {}",
hex::encode(hash)
);
if !globals.map_or(false, |g| g.quiet){
println!( "Transaction Hash: {}", hex::encode(hash));
}
}
_ => {
}
_ => {}
}
Ok(client.send_transaction_polling(&tx_env).await?)
}
Expand Down

0 comments on commit d51bd7a

Please sign in to comment.