From d0a363efda8d3f562b68a0ef0252c2e7376716e8 Mon Sep 17 00:00:00 2001 From: Marco Granelli Date: Sat, 19 Nov 2022 14:54:40 +0100 Subject: [PATCH] Fixes CLI verification tool --- phase2-cli/src/bin/namada-ts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phase2-cli/src/bin/namada-ts.rs b/phase2-cli/src/bin/namada-ts.rs index 6ad306d1..d1b33c08 100644 --- a/phase2-cli/src/bin/namada-ts.rs +++ b/phase2-cli/src/bin/namada-ts.rs @@ -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);