mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-23 12:09:37 +00:00
15 lines
371 B
Rust
15 lines
371 B
Rust
fn main() {
|
|
println!("cargo:rerun-if-changed=contracts");
|
|
println!("cargo:rerun-if-changed=artifacts");
|
|
|
|
#[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());
|
|
}
|