Skip to content

Commit

Permalink
Fix trace exclusion check
Browse files Browse the repository at this point in the history
  • Loading branch information
agostbiro committed Apr 19, 2024
1 parent d66f60f commit 7a1fdd1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,13 @@ export class EdrProviderWrapper
);
const response = JSON.parse(responseObject.json);

if (this._node._vm.evm.events.eventNames().length > 0) {
const needsTraces =
this._node._vm.evm.events.eventNames().length > 0 ||
this._rawTraceCallbacks.onStep !== undefined ||
this._rawTraceCallbacks.onAfterMessage !== undefined ||
this._rawTraceCallbacks.onBeforeMessage !== undefined;

if (needsTraces) {
const rawTraces = responseObject.traces;
for (const rawTrace of rawTraces) {
const trace = rawTrace.trace();
Expand Down

0 comments on commit 7a1fdd1

Please sign in to comment.