diff --git a/pkg/compiler/codegen.go b/pkg/compiler/codegen.go index d62474aef..138513962 100644 --- a/pkg/compiler/codegen.go +++ b/pkg/compiler/codegen.go @@ -852,7 +852,7 @@ func (c *codegen) Visit(node ast.Node) ast.Visitor { // This way even non-pointer struct fields will be copied. emit.Opcodes(c.prog.BinWriter, opcode.NEWARRAY0, opcode.DUP, opcode.ROT, opcode.APPEND, - opcode.PUSH0, opcode.PICKITEM) + opcode.POPITEM) } } // Do not swap for builtin functions.