From ae5efa5e5173b9c90387157426dd0aa3a18f097a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20Strnad?= <43024885+vostrnad@users.noreply.github.com> Date: Thu, 10 Oct 2024 13:03:31 +0200 Subject: [PATCH] chore: fix minimal if comment and error message --- txscript/opcode.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/txscript/opcode.go b/txscript/opcode.go index 770e5b470d..ac74f1c644 100644 --- a/txscript/opcode.go +++ b/txscript/opcode.go @@ -865,10 +865,10 @@ func popIfBool(vm *Engine) (bool, error) { return false, err } - // The top element MUST have a length of at least one. + // The top element MUST have a length of at most one. if len(so) > 1 { str := fmt.Sprintf("minimal if is active, top element MUST "+ - "have a length of at least, instead length is %v", + "have a length of at most 1, instead length is %v", len(so)) return false, scriptError(ErrMinimalIf, str) }