Skip to content

Commit

Permalink
added info
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed Jun 25, 2024
1 parent 65820bb commit 8981de4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions check/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,19 @@ pub fn hash_files(source_file_patterns: Vec<String>, cfg: BuildConfig) -> Result
paths.sort();

for filename in paths.iter() {
println!(
"File used for deployment hash: {}",
filename.as_os_str().to_string_lossy()
);
hash_file(filename)?;
}

let mut hash = [0u8; 32];
keccak.finalize(&mut hash);
println!(
"Project hash computed on deployment: {:?}",
hex::encode(hash)
);
Ok(hash)
}

Expand Down

0 comments on commit 8981de4

Please sign in to comment.