Skip to content

Commit 8a10233

Browse files
committed
Remove dead code in provider/vm/exit.ts
1 parent 2e03e7b commit 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

packages/hardhat-core/src/internal/hardhat-network/provider/vm/exit.ts

-21
Original file line numberDiff line numberDiff line change
@@ -91,25 +91,4 @@ export class Exit {
9191

9292
const _exhaustiveCheck: never = this.kind;
9393
}
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-
}
11594
}

0 commit comments

Comments
 (0)