[#814] morph/event/container: Fix param amount check

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-09-09 11:48:13 +03:00 committed by Alex Vanin
parent b4059f652e
commit 6f41a979ca

View file

@ -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
}