Skip to content

Commit

Permalink
debug wrapper build
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaiton committed Apr 25, 2024
1 parent a7695c2 commit b126f9b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/hyperdrive-wrappers/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ fn main() -> Result<()> {
// re-write these files.
let root = Path::new(std::env!("CARGO_MANIFEST_DIR"));
let generated = root.join("src/wrappers");
println!("generated {:#?}", generated);
if generated.exists() {
std::fs::remove_dir_all(&generated)?;
}
Expand All @@ -97,9 +98,11 @@ fn main() -> Result<()> {
.create(true)
.write(true)
.open(mod_file)?;
println!("mod_file {:#?}", mod_file);

// Generate the relevant contract wrappers from Foundry's artifacts.
let artifacts = root.join("../../hyperdrive/out");
let artifacts = root.join("../../../hyperdrive/out");
println!("artifacts {:#?}", artifacts);
let mut artifacts = get_artifacts(&artifacts)?;
artifacts.sort_by(|a, b| a.1.cmp(&b.1));
artifacts.dedup_by(|a, b| a.1.eq(&b.1));
Expand Down

0 comments on commit b126f9b

Please sign in to comment.