From 6669eb715bb0424682c5755bc4f07d6d8435bd81 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 4 Jan 2021 10:01:51 +0100 Subject: [PATCH] rollback isCallToPreCompiledContract --- libs/remix-debug/src/trace/traceHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-debug/src/trace/traceHelper.ts b/libs/remix-debug/src/trace/traceHelper.ts index e8933762d5..cd4fed9637 100644 --- a/libs/remix-debug/src/trace/traceHelper.ts +++ b/libs/remix-debug/src/trace/traceHelper.ts @@ -54,7 +54,7 @@ export function isCallToPrecompiledContract (index, trace) { // if stack empty => this is not a precompiled contract const step = trace[index] if (this.isCallInstruction(step)) { - return index + 1 < trace.length && (trace[index].depth === trace[index + 1].depth) + return index + 1 < trace.length && trace[index + 1].stack.length !== 0 } return false }