Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
Silence solc link command
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenctw committed Apr 22, 2020
1 parent bcfa14f commit a818074
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions solc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ mod platform {

use std::path::Path;
use std::{fs, io};
use std::process::Stdio;

/// Compiles all solidity files in given directory.
pub fn compile<T: AsRef<Path>>(path: T) {
Expand Down Expand Up @@ -86,6 +87,8 @@ pub fn link<T: AsRef<Path>>(libraries: Vec<String>, target: String, path: T) {
command.arg(target);

let child = command
.stdout(Stdio::null())
.stderr(Stdio::null())
.current_dir(path)
.status()
.unwrap_or_else(|e| panic!("Error linking solidity contracts: {}", e));
Expand Down

0 comments on commit a818074

Please sign in to comment.