Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(zero-bin): verifier binary not picking up pre-processed circuits #474

Merged
merged 2 commits into from
Aug 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions zero_bin/verifier/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,23 @@ use zero_bin_common::version;
mod cli;
mod init;

const EVM_ARITHMETIZATION_PKG_VER: &str = "EVM_ARITHMETIZATION_PKG_VER";

fn main() -> Result<()> {
dotenv().ok();
init::tracing();

if env::var_os(EVM_ARITHMETIZATION_PKG_VER).is_none() {
// Safety:
// - we're early enough in main that nothing else should race
unsafe {
env::set_var(
EVM_ARITHMETIZATION_PKG_VER,
env!("EVM_ARITHMETIZATION_PKG_VER"),
);
}
}

let args: Vec<String> = env::args().collect();
if args.contains(&"--version".to_string()) {
version::print_version(
Expand Down
Loading