diff --git a/leo/cli/cli.rs b/leo/cli/cli.rs index 662ba7cfa0..4c55dff55d 100644 --- a/leo/cli/cli.rs +++ b/leo/cli/cli.rs @@ -204,6 +204,7 @@ mod tests { "aleo1q30lfyggefvzzxqaaclzrn3wd94q4u8zzy8jhhfrcqrf306ayvqsdvj7s4".to_string(), "1u32".to_string(), ], + file: None, compiler_options: Default::default(), }, }, diff --git a/leo/cli/commands/build.rs b/leo/cli/commands/build.rs index 784c07b620..50f0a6c59c 100644 --- a/leo/cli/commands/build.rs +++ b/leo/cli/commands/build.rs @@ -16,11 +16,11 @@ use super::*; -use leo_ast::{Stub}; +use leo_ast::Stub; use leo_compiler::{Compiler, CompilerOptions, OutputOptions}; use leo_errors::UtilError; use leo_package::{build::BuildDirectory, outputs::OutputsDirectory, source::SourceDirectory}; -use leo_span::{Symbol}; +use leo_span::Symbol; use retriever::Retriever; use snarkvm::{ @@ -34,7 +34,6 @@ use std::{ path::{Path, PathBuf}, }; - type CurrentNetwork = Testnet3; impl From for CompilerOptions { @@ -111,7 +110,6 @@ impl Command for Build { let mut local_dependencies = retriever.retrieve().map_err(|err| UtilError::failed_to_retrieve_dependencies(err, Default::default()))?; - // Push the main program at the end of the list to be compiled after all of its dependencies have been processed local_dependencies.push(main_sym); diff --git a/leo/cli/commands/run.rs b/leo/cli/commands/run.rs index 60e5f3aae3..561b7ede84 100644 --- a/leo/cli/commands/run.rs +++ b/leo/cli/commands/run.rs @@ -28,7 +28,7 @@ pub struct Run { pub(crate) inputs: Vec, #[arg(short, long, help = "The inputs to the program, from a file. Overrides the INPUTS argument.")] - file: Option, + pub(crate) file: Option, #[clap(flatten)] pub(crate) compiler_options: BuildOptions,