Skip to content

Commit

Permalink
fixed MAX_ITEM_SIZE=> MAX_BYTEARRAY_SIZE (#443)
Browse files Browse the repository at this point in the history
Signed-off-by: junjie <[email protected]>

Signed-off-by: junjie <[email protected]>
  • Loading branch information
Arbio5zt authored Jun 27, 2018
1 parent 5aec5da commit d9d49a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smartcontract/service/neovm/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func SerializeStackItem(item vmtypes.StackItems) ([]byte, error) {
}

bf := new(bytes.Buffer)
err := serializeStackItem(item, common.NewLimitedWriter(bf, uint64(vm.MAX_ITEM_SIZE)))
err := serializeStackItem(item, common.NewLimitedWriter(bf, uint64(vm.MAX_BYTEARRAY_SIZE)))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit d9d49a5

Please sign in to comment.