Skip to content

Commit

Permalink
move to target
Browse files Browse the repository at this point in the history
  • Loading branch information
MaanavKhaitan committed Nov 20, 2024
1 parent 0d66f23 commit 6009c55
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contracts/script/Deployer.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ contract Deployer is Script, Utils {

// Set ELF paths
jobManager.setElfPath(
bytes32(0x3bbdaf6d405d7da83f503d17334267694f68d75376768f561b1374917539800f), "programs/square-root/elf"
bytes32(0x3bbdaf6d405d7da83f503d17334267694f68d75376768f561b1374917539800f), "target/sp1/square-root"
);

vm.stopBroadcast();
Expand Down
2 changes: 1 addition & 1 deletion programs/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn main() {
for program in programs.clone() {
let args = BuildArgs {
elf_name: program.clone(),
output_directory: format!("programs/{}/elf", program),
output_directory: "target/sp1".to_string(),
..Default::default()
};
build_program_with_args(&program, args);
Expand Down
2 changes: 1 addition & 1 deletion programs/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// The ELF (executable and linkable format) file for the square root program.
pub const SQUARE_ROOT_ELF: &[u8] = include_bytes!("../square-root/elf/square-root");
pub const SQUARE_ROOT_ELF: &[u8] = include_bytes!("../../target/sp1/square-root");

#[cfg(test)]
mod tests {
Expand Down
4 changes: 2 additions & 2 deletions zkvm-utils/src/sol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ pub fn generate_solidity_files(program_names: Vec<String>, opts: &Options) -> Re
let programs: Vec<ProgramMetadata> = program_names
.iter()
.map(|name| {
let elf_path = format!("elf/{name}");
let elf_path = format!("../target/sp1/{name}");
let elf = std::fs::read(elf_path).unwrap();
let program_id = ivm_zkvm::Sp1.derive_program_id(&elf).unwrap();
let elf_path_sol = format!("programs/{name}/elf");
let elf_path_sol = format!("target/sp1/{name}");
ProgramMetadata {
name: name.clone(),
program_id_hex: hex::encode(program_id),
Expand Down

0 comments on commit 6009c55

Please sign in to comment.