From 6f41a979ca2a292090af99741d07b2e1d46fc778 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Thu, 9 Sep 2021 11:48:13 +0300 Subject: [PATCH] [#814] morph/event/container: Fix param amount check Signed-off-by: Pavel Karpy --- pkg/morph/event/container/put_notary.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/morph/event/container/put_notary.go b/pkg/morph/event/container/put_notary.go index 14008b5a..0fa4cb5f 100644 --- a/pkg/morph/event/container/put_notary.go +++ b/pkg/morph/event/container/put_notary.go @@ -57,7 +57,7 @@ func ParsePutNotary(ne event.NotaryEvent) (event.Event, error) { for _, op := range ne.Params() { switch op.Code() { case opcode.PUSHDATA1, opcode.PUSHDATA2, opcode.PUSHDATA4: - if fieldNum > expectedItemNumPut { + if fieldNum == expectedItemNumPut { return nil, errUnexpectedArgumentAmount }