Skip to content

Commit

Permalink
Rename injectVmTracer to setVmTracer
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Jun 28, 2024
1 parent 02bda03 commit 2fe2cff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,11 @@ export class EdrProviderWrapper
}

/**
* Injects a `VMTracer` that observes EVM throughout requests.
* Sets a `VMTracer` that observes EVM throughout requests.
*
* Used for internal stack traces integration tests.
*/
public injectVmTracer(vmTracer?: VMTracer) {
public setVmTracer(vmTracer?: VMTracer) {
this._vmTracer = vmTracer;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export async function traceTransaction(
txData: TxData
): Promise<MessageTrace> {
const vmTracer = new VMTracer();
provider.injectVmTracer(vmTracer);
provider.setVmTracer(vmTracer);

try {
await provider.request({
Expand All @@ -131,6 +131,6 @@ export async function traceTransaction(
}
return trace;
} finally {
provider.injectVmTracer(undefined);
provider.setVmTracer(undefined);
}
}

0 comments on commit 2fe2cff

Please sign in to comment.