Skip to content

Commit b4ae1c3

Browse files
committed
fix: remove unneeded code
1 parent 403ca19 commit b4ae1c3

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

v-next/hardhat/src/internal/builtin-plugins/network-manager/edr/stack-traces/stack-trace-solidity-errors.ts

+4-7
Original file line numberDiff line numberDiff line change
@@ -307,18 +307,15 @@ export class SolidityError extends Error {
307307
super(message);
308308

309309
Object.defineProperty(this, Symbol.for("nodejs.util.inspect.custom"), {
310-
value: this.inspect,
310+
value: () =>
311+
this.stack !== undefined
312+
? this.stack
313+
: "Internal error when encoding SolidityError",
311314
writable: false,
312315
enumerable: false,
313316
configurable: true,
314317
});
315318
}
316-
317-
public inspect(): string {
318-
return this.stack !== undefined
319-
? this.stack
320-
: "Internal error when encoding SolidityError";
321-
}
322319
}
323320

324321
export class SolidityCallSite implements NodeJS.CallSite {

0 commit comments

Comments
 (0)