From 8c45736cf4d4796b89319b8658c86ae815a31f0d Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 17 Dec 2024 15:57:37 -0800 Subject: [PATCH] validation: fix hash formatting --- validation/src/validator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation/src/validator.rs b/validation/src/validator.rs index ab4995c..9e0b791 100644 --- a/validation/src/validator.rs +++ b/validation/src/validator.rs @@ -121,7 +121,7 @@ impl Validator{ // fetch the script policy let script_policy=interpret_get_script_policy_response( self.api.get_script_policy_from_hash(submissions_api::external::ScriptPolicyHashRequest{ - hash:format!("{:x}",hash).as_str(), + hash:format!("{:016x}",hash).as_str(), }).await ).map_err(ValidateError::ApiGetScriptPolicy)?;