Commit 8a10233 1 parent 2e03e7b commit 8a10233 Copy full SHA for 8a10233
File tree 1 file changed +0
-21
lines changed
packages/hardhat-core/src/internal/hardhat-network/provider/vm
1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -91,25 +91,4 @@ export class Exit {
91
91
92
92
const _exhaustiveCheck : never = this . kind ;
93
93
}
94
-
95
- public getEdrExceptionalHalt ( ) : ExceptionalHalt {
96
- const { ExceptionalHalt } = requireNapiRsModule (
97
- "@nomicfoundation/edr"
98
- ) as typeof import ( "@nomicfoundation/edr" ) ;
99
-
100
- switch ( this . kind ) {
101
- case ExitCode . OUT_OF_GAS :
102
- return ExceptionalHalt . OutOfGas ;
103
- case ExitCode . INVALID_OPCODE :
104
- return ExceptionalHalt . OpcodeNotFound ;
105
- case ExitCode . CODESIZE_EXCEEDS_MAXIMUM :
106
- return ExceptionalHalt . CreateContractSizeLimit ;
107
- case ExitCode . CREATE_COLLISION :
108
- return ExceptionalHalt . CreateCollision ;
109
-
110
- default :
111
- // eslint-disable-next-line @nomicfoundation/hardhat-internal-rules/only-hardhat-error
112
- throw new Error ( `Unmatched exit code: ${ this . kind } ` ) ;
113
- }
114
- }
115
94
}
You can’t perform that action at this time.
0 commit comments