import { OpCode } from '.' ; import { EvmContext } from '../vm/evm-context' ; class InvalidOp implements OpCode { public readonly code = 0xfe ; public readonly mnemonic = 'INVALID' ; public readonly description = 'Designated invalid instruction' ; public readonly gas = 0 ; public readonly bytes = 1 ; public toString ( params ) { return `${ this . mnemonic }` ; } public handle ( context ) { throw new Error ( 'Invalid instruction' ) ; } } export const Invalid = new InvalidOp ( ) ;