Skip to content

Commit

Permalink
[VM] remove unneeded opcode entries which only introduced gas changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jochem-brouwer committed Jul 3, 2020
1 parent 5248d9d commit a44f7f0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/vm/lib/evm/opcodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const opcodes = {
0x3c: { name: 'EXTCODECOPY', isAsync: true },

// '0x40' range - block operations
0x40: { name: 'BLOCKHASH', fee: 20, isAsync: true },
0x40: { name: 'BLOCKHASH', isAsync: true },
0x41: { name: 'COINBASE', isAsync: true },
0x42: { name: 'TIMESTAMP', isAsync: true },
0x43: { name: 'NUMBER', isAsync: true },
Expand Down Expand Up @@ -222,11 +222,8 @@ const hardforkOpcodes = [
{
hardforkName: 'istanbul',
opcodes: {
0x31: { name: 'BALANCE', isAsync: true }, // gas price change, EIP 1884
0x3f: { name: 'EXTCODEHASH', isAsync: true }, // gas price change, EIP 1884
0x46: { name: 'CHAINID', isAsync: false }, // EIP 1344
0x47: { name: 'SELFBALANCE', fee: 5, isAsync: false }, // EIP 1884
0x54: { name: 'SLOAD', fee: 800, isAsync: true }, // gas price change, EIP 1884
0x47: { name: 'SELFBALANCE', isAsync: false }, // EIP 1884
},
},
]
Expand Down

0 comments on commit a44f7f0

Please sign in to comment.