OUT_DIR > artifacts

This commit is contained in:
Luke Parker
2024-09-15 00:57:43 -04:00
parent a38d135059
commit 0813351f1f
7 changed files with 27 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "build-solidity-contracts"
version = "0.1.0"
version = "0.1.1"
description = "A helper function to build Solidity contracts"
license = "MIT"
repository = "https://github.com/serai-dex/serai/tree/develop/networks/ethereum/build-contracts"

View File

@@ -4,7 +4,7 @@
use std::{path::PathBuf, fs, process::Command};
/// Build contracts placed in `contracts/`, outputting to `artifacts/`.
/// Build contracts from the specified path, outputting the artifacts to the specified path.
///
/// Requires solc 0.8.25.
pub fn build(contracts_path: &str, artifacts_path: &str) -> Result<(), String> {
@@ -33,7 +33,7 @@ pub fn build(contracts_path: &str, artifacts_path: &str) -> Result<(), String> {
#[rustfmt::skip]
let args = [
"--base-path", ".",
"-o", "./artifacts", "--overwrite",
"-o", artifacts_path, "--overwrite",
"--bin", "--bin-runtime", "--abi",
"--via-ir", "--optimize",
"--no-color",