Skip to content

Commit 97b2f08

Browse files
committed
Finish porting error inferrer
1 parent dc1c4b1 commit 97b2f08

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

packages/hardhat-core/src/internal/hardhat-network/stack-traces/error-inferrer.ts

+1-21
Original file line numberDiff line numberDiff line change
@@ -41,33 +41,13 @@ export class ErrorInferrer {
4141
jumpedIntoFunction: boolean,
4242
lastSubmessageData: SubmessageData | undefined
4343
): SolidityStackTrace {
44-
const res = ErrorInferrerRs.inferAfterTracing(
44+
return ErrorInferrerRs.inferAfterTracing(
4545
trace,
4646
stacktrace,
4747
functionJumpdests,
4848
jumpedIntoFunction,
4949
lastSubmessageData
5050
);
51-
52-
return (
53-
ErrorInferrerRs.checkLastSubmessage(
54-
trace,
55-
stacktrace,
56-
lastSubmessageData
57-
) ??
58-
// res ??
59-
ErrorInferrerRs.checkFailedLastCall(trace, stacktrace) ??
60-
ErrorInferrerRs.checkLastInstruction(
61-
trace,
62-
stacktrace,
63-
functionJumpdests,
64-
jumpedIntoFunction
65-
) ??
66-
ErrorInferrerRs.checkNonContractCalled(trace, stacktrace) ??
67-
ErrorInferrerRs.checkSolidity063UnmappedRevert(trace, stacktrace) ??
68-
ErrorInferrerRs.checkContractTooLarge(trace) ??
69-
ErrorInferrerRs.otherExecutionErrorStacktrace(trace, stacktrace)
70-
);
7151
}
7252

7353
public filterRedundantFrames(

0 commit comments

Comments
 (0)