Skip to content

Commit

Permalink
change output file for fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
yash1io committed Oct 15, 2024
1 parent 1a1d91b commit 61fbb48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Binary file modified elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
8 changes: 4 additions & 4 deletions script/src/bin/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct EVMArgs {
system: ProofSystem,

#[clap(long, value_parser)]
input_file: PathBuf,
input_file: String,
}

/// Enum representing the available proof systems
Expand Down Expand Up @@ -78,14 +78,14 @@ fn main() {
}
.expect("failed to generate proof");

create_proof_fixture(&proof, &vk, args.system);
create_proof_fixture(&proof, &vk, args.input_file)
}

/// Create a fixture for the given proof.
fn create_proof_fixture(
proof: &SP1ProofWithPublicValues,
vk: &SP1VerifyingKey,
system: ProofSystem,
input_file: String,
) {
// Deserialize the public values.
let bytes = proof.public_values.as_slice();
Expand Down Expand Up @@ -119,7 +119,7 @@ fn create_proof_fixture(
let fixture_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../contracts/src/fixtures");
std::fs::create_dir_all(&fixture_path).expect("failed to create fixture path");
std::fs::write(
fixture_path.join(format!("{:?}-fixture.json", system).to_lowercase()),
fixture_path.join(format!("{:?}-fixture.json", input_file).to_lowercase()),
serde_json::to_string_pretty(&fixture).unwrap(),
)
.expect("failed to write fixture");
Expand Down

0 comments on commit 61fbb48

Please sign in to comment.