Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed Jul 26, 2024
1 parent aac869b commit 89e8e95
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
5 changes: 1 addition & 4 deletions check/src/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// For licensing, see https://github.com/OffchainLabs/cargo-stylus/blob/main/licenses/COPYRIGHT.md

#![allow(clippy::println_empty_string)]

use std::process::Command;

use crate::{
check::{self, ProgramCheck},
constants::ARB_WASM_H160,
Expand Down Expand Up @@ -142,7 +139,7 @@ impl DeployConfig {
greyln!("deployed code at address: {address}");
}
let tx_hash = receipt.transaction_hash.debug_lavender();
greyln!("Deployment tx hash: {tx_hash}");
greyln!("deployment tx hash: {tx_hash}");
Ok(contract)
}

Expand Down
4 changes: 0 additions & 4 deletions check/src/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ fn version_to_image_name(version: &str) -> String {
}

fn image_exists(name: &str) -> Result<bool> {
println!("Checking if {} exists yo", name);
let output = Command::new("docker")
.arg("images")
.arg(name)
.output()
.map_err(|e| eyre!("failed to execute Docker command: {e}"))?;
println!("yay it did not fail");
Ok(output.stdout.iter().filter(|c| **c == b'\n').count() > 1)
}

Expand All @@ -35,7 +33,6 @@ fn create_image() -> Result<()> {
}
let toolchain_file_path = PathBuf::from(".").as_path().join(TOOLCHAIN_FILE_NAME);
let toolchain_channel = extract_toolchain_channel(&toolchain_file_path)?;
println!("Creating image...");
let mut child = Command::new("docker")
.arg("build")
.arg("-t")
Expand Down Expand Up @@ -74,7 +71,6 @@ fn run_in_docker_container(version: &str, command_line: &[&str]) -> Result<()> {
if !image_exists(&name)? {
bail!("Docker image {name} doesn't exist");
}
println!("Running command in container: {:?}", command_line);
let dir =
std::env::current_dir().map_err(|e| eyre!("failed to find current directory: {e}"))?;
Command::new("docker")
Expand Down
2 changes: 1 addition & 1 deletion check/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ pub fn hash_files(source_file_patterns: Vec<String>, cfg: BuildConfig) -> Result
let mut hash = [0u8; 32];
keccak.finalize(&mut hash);
greyln!(
"Project hash computed on deployment: {:?}",
"project metadata hash computed on deployment: {:?}",
hex::encode(hash)
);
Ok(hash)
Expand Down

0 comments on commit 89e8e95

Please sign in to comment.