From a44f7f0f34af6a3435b02b6da5171089ccac03e5 Mon Sep 17 00:00:00 2001 From: Jochem Brouwer Date: Fri, 3 Jul 2020 23:02:23 +0200 Subject: [PATCH] [VM] remove unneeded opcode entries which only introduced gas changes --- packages/vm/lib/evm/opcodes.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/vm/lib/evm/opcodes.ts b/packages/vm/lib/evm/opcodes.ts index c31cf61a694..8047885a872 100644 --- a/packages/vm/lib/evm/opcodes.ts +++ b/packages/vm/lib/evm/opcodes.ts @@ -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 }, @@ -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 }, }, ]