Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
d0cd committed Jun 1, 2024
1 parent 8b46da4 commit 045af83
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions leo/cli/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ use crate::cli::helpers::context::*;
use leo_errors::{emitter::Handler, CliError, PackageError, Result};
use leo_package::{build::*, outputs::OutputsDirectory, package::*};
use snarkvm::prelude::{block::Transaction, Ciphertext, Plaintext, PrivateKey, Record, ViewKey};
use snarkvm::{console::network::Network};

use clap::Parser;
use colored::Colorize;
use std::str::FromStr;
use tracing::span::Span;

use snarkvm::{console::network::Network, prelude::ToBytes};

/// Base trait for the Leo CLI, see methods and their documentation for details.
pub trait Command {
Expand Down Expand Up @@ -213,15 +213,6 @@ fn handle_broadcast<N: Network>(endpoint: &String, transaction: Transaction<N>,
// Get the transaction id.
let transaction_id = transaction.id();

// TODO: remove
println!("Transaction {:?}", transaction);
let tx_bytes = transaction.to_bytes_le()?;
println!("Transaction bytes: {:?}", tx_bytes);
let tx_json = serde_json::to_string(&transaction).unwrap();
println!("Transaction JSON: {:?}", tx_json);
let deserialize_tx_json = serde_json::from_str::<Transaction<N>>(&tx_json).unwrap();
println!("Deserialized transaction: {:?}", deserialize_tx_json);

// Send the deployment request to the local development node.
return match ureq::post(endpoint).send_json(&transaction) {
Ok(id) => {
Expand Down

0 comments on commit 045af83

Please sign in to comment.