mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-11-14 03:55:18 +00:00
a4abe2b2a4
* fix build dependency isuse * cargo fmt * fix lint failure in CI * update toolchain
31 lines
1.3 KiB
Rust
31 lines
1.3 KiB
Rust
// use std::process::Command;
|
|
|
|
// const INSTALL_ERROR_MESSAGE: &str =
|
|
// "Install dependencies for contract fail, try to run `yarn` in folder 'zerog-storage-contracts'";
|
|
// const COMPILE_ERROR_MESSAGE: &str =
|
|
// "Compile solidity contracts fail, try to run `yarn compile` in folder 'zerog-storage-contracts'";
|
|
|
|
fn main() {
|
|
// if cfg!(feature = "compile-contracts") {
|
|
// println!("cargo:rerun-if-changed=../../zerog-storage-contracts/contracts/");
|
|
// println!("cargo:rerun-if-changed=../../zerog-storage-contracts/hardhat.config.ts");
|
|
|
|
// let output = Command::new("yarn")
|
|
// .arg("--cwd")
|
|
// .arg("../../zerog-storage-contracts")
|
|
// .status()
|
|
// .expect(INSTALL_ERROR_MESSAGE);
|
|
// assert!(output.success(), "{}", INSTALL_ERROR_MESSAGE);
|
|
|
|
// let output = Command::new("yarn")
|
|
// .arg("--cwd")
|
|
// .arg("../../zerog-storage-contracts")
|
|
// .arg("compile")
|
|
// .status()
|
|
// .expect(COMPILE_ERROR_MESSAGE);
|
|
// assert!(output.success(), "{}", COMPILE_ERROR_MESSAGE);
|
|
// } else {
|
|
// println!("cargo:rerun-if-changed=../../zerog-storage-contracts/artifacts/");
|
|
// }
|
|
}
|