Skip to content

Commit

Permalink
Merge pull request #129 from kcalvinalvin/2024-02-02-fix-bug
Browse files Browse the repository at this point in the history
txscript: fix bug by casting to uint32
  • Loading branch information
kcalvinalvin authored Feb 2, 2024
2 parents a34adc3 + 3d5f185 commit 366f932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion txscript/opcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ func opcodeCheckSequenceVerify(op *opcode, data []byte, vm *Engine) error {

// Transaction version numbers not high enough to trigger CSV rules must
// fail.
if vm.tx.Version < 2 {
if uint32(vm.tx.Version) < 2 {
str := fmt.Sprintf("invalid transaction version: %d",
vm.tx.Version)
return scriptError(ErrUnsatisfiedLockTime, str)
Expand Down

0 comments on commit 366f932

Please sign in to comment.