aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/sol-cov/src/revert_trace.ts3
-rw-r--r--packages/sol-cov/src/trace.ts4
2 files changed, 1 insertions, 6 deletions
diff --git a/packages/sol-cov/src/revert_trace.ts b/packages/sol-cov/src/revert_trace.ts
index 1d52b969e..a78d1afa8 100644
--- a/packages/sol-cov/src/revert_trace.ts
+++ b/packages/sol-cov/src/revert_trace.ts
@@ -30,9 +30,6 @@ export function getRevertTrace(structLogs: StructLog[], startAddress: string): E
structLog.stack[structLog.stack.length - jumpAddressOffset - 1],
);
- if (structLog === _.last(normalizedStructLogs)) {
- throw new Error('Malformed trace. CALL-like opcode can not be the last one');
- }
// Sometimes calls don't change the execution context (current address). When we do a transfer to an
// externally owned account - it does the call and immediately returns because there is no fallback
// function. We manually check if the call depth had changed to handle that case.
diff --git a/packages/sol-cov/src/trace.ts b/packages/sol-cov/src/trace.ts
index fad2e5e08..635019fc0 100644
--- a/packages/sol-cov/src/trace.ts
+++ b/packages/sol-cov/src/trace.ts
@@ -33,9 +33,7 @@ export function getTracesByContractAddress(structLogs: StructLog[], startAddress
const newAddress = utils.getAddressFromStackEntry(
structLog.stack[structLog.stack.length - jumpAddressOffset - 1],
);
- if (structLog === _.last(normalizedStructLogs)) {
- throw new Error('Malformed trace. CALL-like opcode can not be the last one');
- }
+
// Sometimes calls don't change the execution context (current address). When we do a transfer to an
// externally owned account - it does the call and immediately returns because there is no fallback
// function. We manually check if the call depth had changed to handle that case.