serai/networks/ethereum/schnorr/build.rs
2024-09-19 23:36:32 -07:00

9 lines
300 B
Rust

use std::{env, fs};
fn main() {
let artifacts_path = env::var("OUT_DIR").unwrap().to_string() + "/ethereum-schnorr-contract";
if !fs::exists(&artifacts_path).unwrap() {
fs::create_dir(&artifacts_path).unwrap();
}
build_solidity_contracts::build("contracts", &artifacts_path).unwrap();
}