Skip to content

Commit

Permalink
chore: fix minimal if comment and error message
Browse files Browse the repository at this point in the history
  • Loading branch information
vostrnad committed Oct 10, 2024
1 parent ee68dc6 commit ae5efa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions txscript/opcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit ae5efa5

Please sign in to comment.