From 897e6458ce921c6bbbf6b5891e3371dd21670a7c Mon Sep 17 00:00:00 2001
From: Orfeas Litos <orfeas.litos@hotmail.com>
Date: Wed, 10 Nov 2021 23:40:20 +0100
Subject: Cast 8-vector of u32 to u256

---
 bip-0119.mediawiki | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'bip-0119.mediawiki')

diff --git a/bip-0119.mediawiki b/bip-0119.mediawiki
index b407fab..8a71e3e 100644
--- a/bip-0119.mediawiki
+++ b/bip-0119.mediawiki
@@ -145,7 +145,7 @@ specification for the semantics of OP_CHECKTEMPLATEVERIFY.
         // If the argument was not 32 bytes, treat as OP_NOP4:
         switch (stack.back().size()) {
             case 32:
-                if (!checker.CheckDefaultCheckTemplateVerifyHash(stack.back())) {
+                if (!checker.CheckDefaultCheckTemplateVerifyHash(u256(stack.back()))) {
                     return set_error(serror, SCRIPT_ERR_TEMPLATE_MISMATCH);
                 }
                 break;
-- 
cgit v1.2.3

