File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -338,8 +338,8 @@ export class Interpreter {
338
338
if ( overheadTimer !== undefined ) {
339
339
this . performanceLogger . unpauseTimer ( overheadTimer )
340
340
}
341
- // re-throw on non-VM errors
342
- if ( ! ( 'errorType' in e && e . errorType === 'EvmError' ) ) {
341
+ // re-throw on non-VM-runtime errors
342
+ if ( getRuntimeError ( e ) === undefined ) {
343
343
throw e
344
344
}
345
345
// STOP is not an exception
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export type EthereumJSErrorObject = {
18
18
*/
19
19
export class EthereumJSError < T extends { code : string } > extends Error {
20
20
type : T
21
- code : string
21
+ code : string // TODO likely remove this and for error inspection inspect `error.type.code` (like Lodestar)
22
22
constructor ( type : T , message ?: string , stack ?: string ) {
23
23
super ( message ?? type . code )
24
24
this . type = type
You can’t perform that action at this time.
0 commit comments