From 21c1333569fa3d21ccff3e174b42ca22b2468f9d Mon Sep 17 00:00:00 2001 From: Afanti <127061691+threewebcode@users.noreply.github.com> Date: Fri, 5 Jan 2024 03:24:36 +0800 Subject: [PATCH 1/2] fix: correct the typos [skip ci] Use the change to rectify some typos. --- txscript/opcode.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/txscript/opcode.go b/txscript/opcode.go index 4918b991c5..668d20e810 100644 --- a/txscript/opcode.go +++ b/txscript/opcode.go @@ -1278,7 +1278,7 @@ func opcodeIfDup(op *opcode, data []byte, vm *Engine) error { return err } - // Push copy of data iff it isn't zero + // Push copy of data if it isn't zero if asBool(so) { vm.dstack.PushByteArray(so) } @@ -1983,7 +1983,7 @@ func opcodeCheckSig(op *opcode, data []byte, vm *Engine) error { return err } - // The signature actually needs needs to be longer than this, but at + // The signature actually needs to be longer than this, but at // least 1 byte is needed for the hash type below. The full length is // checked depending on the script flags and upon parsing the signature. // From 1bc81249abd6751a88fb281b2e8c01bd8bf09e70 Mon Sep 17 00:00:00 2001 From: Afanti <127061691+threewebcode@users.noreply.github.com> Date: Fri, 5 Jan 2024 07:28:48 +0800 Subject: [PATCH 2/2] fix: correct the typos [skip ci] --- txscript/opcode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/txscript/opcode.go b/txscript/opcode.go index 668d20e810..5b60eff59d 100644 --- a/txscript/opcode.go +++ b/txscript/opcode.go @@ -1278,7 +1278,7 @@ func opcodeIfDup(op *opcode, data []byte, vm *Engine) error { return err } - // Push copy of data if it isn't zero + // Push copy of data iff it isn't zero if asBool(so) { vm.dstack.PushByteArray(so) }