Skip to content

Commit

Permalink
Use target width
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh committed Dec 3, 2024
1 parent f249be4 commit 0671486
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tooling/nargo_cli/src/cli/compile_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,12 @@ pub(crate) fn get_target_width(
mod tests {
use std::path::{Path, PathBuf};

use acvm::acir::circuit::ExpressionWidth;
use nargo::ops::compile_program;
use nargo_toml::PackageSelection;
use noirc_driver::{CompileOptions, DEFAULT_EXPRESSION_WIDTH};
use noirc_driver::CompileOptions;
use rayon::prelude::*;

use crate::cli::compile_cmd::{parse_workspace, read_workspace};
use crate::cli::compile_cmd::{get_target_width, parse_workspace, read_workspace};

/// Try to find the directory that Cargo sets when it is running; otherwise fallback to assuming the CWD
/// is the root of the repository and append the crate path
Expand Down Expand Up @@ -379,8 +378,7 @@ mod tests {
)
.expect("failed to compile");

// let width = DEFAULT_EXPRESSION_WIDTH;
let width = ExpressionWidth::default();
let width = get_target_width(package.expression_width, None);

let program = nargo::ops::transform_program(program, width);
let program_hash_1 = fxhash::hash64(&program);
Expand Down

0 comments on commit 0671486

Please sign in to comment.