Skip to content

Commit

Permalink
vm: moved BEGINSUB, RETURNSUB and JUMPSUB opcodes to dedicated Berlin…
Browse files Browse the repository at this point in the history
… HF opcode section in opcodes.ts
  • Loading branch information
holgerd77 committed Aug 12, 2020
1 parent 4a547c2 commit a1e55cb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/vm/lib/evm/opcodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ const opcodes = {
0x59: { name: 'MSIZE', isAsync: false },
0x5a: { name: 'GAS', isAsync: false },
0x5b: { name: 'JUMPDEST', isAsync: false },
0x5c: { name: 'BEGINSUB', isAsync: false },
0x5d: { name: 'RETURNSUB', isAsync: false },
0x5e: { name: 'JUMPSUB', isAsync: false },

// 0x60, range
0x60: { name: 'PUSH', isAsync: false },
Expand Down Expand Up @@ -228,6 +225,14 @@ const hardforkOpcodes = [
0x47: { name: 'SELFBALANCE', isAsync: false }, // EIP 1884
},
},
{
hardforkName: 'berlin',
opcodes: {
0x5c: { name: 'BEGINSUB', isAsync: false }, // EIP 2315
0x5d: { name: 'RETURNSUB', isAsync: false }, // EIP 2315
0x5e: { name: 'JUMPSUB', isAsync: false }, // EIP 2315
},
},
]

/**
Expand Down

0 comments on commit a1e55cb

Please sign in to comment.