mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
OUT_DIR > artifacts
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user