Skip to content

Commit 6f3c846

Browse files
committed
Remove bespoke arguments from evm_trace
1 parent 3341717 commit 6f3c846

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

src/ethereum/trace.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,6 @@ class GasAndRefund:
172172
def discard_evm_trace(
173173
evm: object, # noqa: U100
174174
event: TraceEvent, # noqa: U100
175-
trace_memory: bool = False, # noqa: U100
176-
trace_stack: bool = True, # noqa: U100
177-
trace_return_data: bool = False, # noqa: U100
178175
) -> None:
179176
"""
180177
An [`EvmTracer`] that discards all events.
@@ -199,10 +196,6 @@ def __call__(
199196
self,
200197
evm: object,
201198
event: TraceEvent,
202-
/,
203-
trace_memory: bool = False, # noqa: U100
204-
trace_stack: bool = True, # noqa: U100
205-
trace_return_data: bool = False, # noqa: U100
206199
) -> None:
207200
"""
208201
Call `self` as a function, recording a trace event.
@@ -212,13 +205,6 @@ def __call__(
212205
213206
`event`, a [`TraceEvent`], is the reason why the tracer was triggered.
214207
215-
`trace_memory` requests a full memory dump in the resulting trace.
216-
217-
`trace_stack` requests the full stack in the resulting trace.
218-
219-
`trace_return_data` requests that return data be included in the
220-
resulting trace.
221-
222208
See [`discard_evm_trace`] for an example function implementing this
223209
protocol.
224210
@@ -251,10 +237,6 @@ def set_evm_trace(tracer: EvmTracer) -> EvmTracer:
251237
def evm_trace(
252238
evm: object,
253239
event: TraceEvent,
254-
/,
255-
trace_memory: bool = False,
256-
trace_stack: bool = True,
257-
trace_return_data: bool = False,
258240
) -> None:
259241
"""
260242
Emit a trace to the active [`EvmTracer`].
@@ -265,7 +247,4 @@ def evm_trace(
265247
_evm_trace(
266248
evm,
267249
event,
268-
trace_memory=trace_memory,
269-
trace_stack=trace_stack,
270-
trace_return_data=trace_return_data,
271250
)

tests/test_trace.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,13 @@ def test_modify_evm_trace() -> None:
1212
def tracer1(
1313
evm: object, # noqa: U100
1414
event: ethereum.trace.TraceEvent,
15-
trace_memory: bool = False, # noqa: U100
16-
trace_stack: bool = True, # noqa: U100
17-
trace_return_data: bool = False, # noqa: U100
1815
) -> None:
1916
nonlocal trace1
2017
trace1 = event
2118

2219
def tracer2(
2320
evm: object, # noqa: U100
2421
event: ethereum.trace.TraceEvent,
25-
trace_memory: bool = False, # noqa: U100
26-
trace_stack: bool = True, # noqa: U100
27-
trace_return_data: bool = False, # noqa: U100
2822
) -> None:
2923
nonlocal trace2
3024
trace2 = event

0 commit comments

Comments
 (0)