forked from TrueCloudLab/frostfs-node
[#814] morph/event/container: Fix param amount check
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
b4059f652e
commit
6f41a979ca
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ func ParsePutNotary(ne event.NotaryEvent) (event.Event, error) {
|
||||||
for _, op := range ne.Params() {
|
for _, op := range ne.Params() {
|
||||||
switch op.Code() {
|
switch op.Code() {
|
||||||
case opcode.PUSHDATA1, opcode.PUSHDATA2, opcode.PUSHDATA4:
|
case opcode.PUSHDATA1, opcode.PUSHDATA2, opcode.PUSHDATA4:
|
||||||
if fieldNum > expectedItemNumPut {
|
if fieldNum == expectedItemNumPut {
|
||||||
return nil, errUnexpectedArgumentAmount
|
return nil, errUnexpectedArgumentAmount
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue