vm: implement NEWARRAY0 and NEWSTRUCT0 opcodes

This commit is contained in:
Evgenii Stratonikov 2020-04-24 12:31:59 +03:00
parent 03761421f8
commit 9fd04aefa5
4 changed files with 131 additions and 105 deletions

View file

@ -143,12 +143,12 @@ const (
CHECKMULTISIG Opcode = 0xAE
// Advanced data structures (arrays, structures, maps)
PACK Opcode = 0xC0
UNPACK Opcode = 0xC1
// NEWARRAY0 Opcode = 0xC2
NEWARRAY Opcode = 0xC3
PACK Opcode = 0xC0
UNPACK Opcode = 0xC1
NEWARRAY0 Opcode = 0xC2
NEWARRAY Opcode = 0xC3
// NEWARRAYT Opcode = 0xC4
// NEWSTRUCT0 Opcode = 0xC5
NEWSTRUCT0 Opcode = 0xC5
NEWSTRUCT Opcode = 0xC6
NEWMAP Opcode = 0xC8
SIZE Opcode = 0xCA