Skip to content

Commit

Permalink
fix info cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm authored and aakoshh committed Jan 23, 2025
1 parent 72e8e5c commit 2d79656
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tooling/nargo_cli/src/cli/info_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@ use nargo::{
constants::PROVER_INPUT_FILE, foreign_calls::DefaultForeignCallBuilder, package::Package,
};
use nargo_toml::{get_package_manifest, resolve_workspace_from_toml};
use noirc_abi::input_parser::Format;
use noirc_artifacts::program::ProgramArtifact;
use noirc_driver::{CompileOptions, NOIR_ARTIFACT_VERSION_STRING};
use prettytable::{row, table, Row};
use rayon::prelude::*;
use serde::Serialize;

use crate::{cli::fs::inputs::read_inputs_from_file, errors::CliError};
use crate::errors::CliError;

use super::{
compile_cmd::{compile_workspace_full, get_target_width},
fs::program::read_program_from_file,
fs::{inputs::read_inputs_from_file_any_format, program::read_program_from_file},
NargoConfig, PackageOptions,
};

Expand Down Expand Up @@ -243,11 +242,10 @@ fn profile_brillig_execution(
) -> Result<Vec<ProgramInfo>, CliError> {
let mut program_info = Vec::new();
for (package, program_artifact) in binary_packages.iter() {
// Parse the initial witness values from Prover.toml
let (inputs_map, _) = read_inputs_from_file(
// Parse the initial witness values from Prover.toml or Prover.json
let (inputs_map, _) = read_inputs_from_file_any_format(
&package.root_dir,
prover_name,
Format::Toml,
&program_artifact.abi,
)?;
let initial_witness = program_artifact.abi.encode(&inputs_map, None)?;
Expand Down

0 comments on commit 2d79656

Please sign in to comment.