From 51281dcd38cb594fb82b1d027a26ba29bf9b817b Mon Sep 17 00:00:00 2001 From: Siggi <4411176+icellan@users.noreply.github.com> Date: Fri, 4 Nov 2022 19:01:36 +0100 Subject: [PATCH] Update bob.go Fixed length check on B output --- bob.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bob.go b/bob.go index 42c4001..99b3303 100644 --- a/bob.go +++ b/bob.go @@ -39,7 +39,7 @@ func NewFromTapes(tapes []bob.Tape) (b *B, err error) { // FromTape takes a BOB Tape and returns a B data structure func (b *B) FromTape(tape bob.Tape) (err error) { - if len(tape.Cell) < 4 { + if len(tape.Cell) < 3 { // B only requires 3 elements at minimum err = fmt.Errorf("invalid B tx Only %d pushdatas", len(tape.Cell)) return }