validation: fix hash formatting

This commit is contained in:
Quaternions 2024-12-17 15:57:37 -08:00
parent db52b1dcd4
commit 8c45736cf4

View File

@ -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)?;