mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
OUT_DIR > artifacts
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
use std::{env, fs};
|
||||
|
||||
fn main() {
|
||||
build_solidity_contracts::build("contracts", "artifacts").unwrap();
|
||||
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user