Restore Foundry to a test dependency via direct usage of solc

This commit is contained in:
Luke Parker
2023-11-12 04:34:45 -05:00
parent 7f1732c8c0
commit a43815f101
7 changed files with 16 additions and 31 deletions

View File

@@ -1,7 +1,15 @@
fn main() {
println!("cargo:rerun-if-changed=contracts");
println!("cargo:rerun-if-changed=artifacts");
println!("cargo:rerun-if-changed=foundry.toml");
assert!(std::process::Command::new("forge").args(["build"]).status().unwrap().success());
#[rustfmt::skip]
let args = [
"--base-path", ".",
"-o", "./artifacts", "--overwrite",
"--bin", "--abi",
"--optimize",
"./contracts/Schnorr.sol"
];
assert!(std::process::Command::new("solc").args(args).status().unwrap().success());
}