Skip to content

Commit

Permalink
core/vm: Remove opInvalid as opUndefined handles it
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Dec 9, 2021
1 parent fea576c commit ed76905
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions core/vm/instructions.go
Expand Up @@ -817,10 +817,6 @@ func opStop(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byt
return nil, errStopToken
}

func opInvalid(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) {
return nil, &ErrInvalidOpCode{opcode: INVALID}
}

func opSelfdestruct(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) {
if interpreter.readOnly {
return nil, ErrWriteProtection
Expand Down
6 changes: 0 additions & 6 deletions core/vm/jump_table.go
Expand Up @@ -995,12 +995,6 @@ func newFrontierInstructionSet() JumpTable {
maxStack: maxStack(2, 0),
memorySize: memoryReturn,
},
INVALID: {
execute: opInvalid,
constantGas: 0,
minStack: minStack(0, 0),
maxStack: maxStack(0, 0),
},
SELFDESTRUCT: {
execute: opSelfdestruct,
dynamicGas: gasSelfdestruct,
Expand Down

0 comments on commit ed76905

Please sign in to comment.