Skip to content

Commit

Permalink
Fixes CLI verification tool
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed Nov 19, 2022
1 parent 765e9a1 commit d0a363e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phase2-cli/src/bin/namada-ts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ async fn main() {
if let Some(path) = parameter_path {
// Check hash of the parameters file
let contribution = std::fs::read(path).expect(&format!("{}", "Failed to read file".red().bold()));
let contribution_file_hash = calculate_hash(contribution.as_ref());
let contribution_file_hash = calculate_hash(&contribution[64..]);
if hex::encode(contribution_file_hash) != message {
eprintln!("{}", "The computed hash of the file does not match the provided one".red().bold());
process::exit(1);
Expand Down

0 comments on commit d0a363e

Please sign in to comment.