Skip to content

Commit 87a9e65

Browse files
committed
Remove global state from eip3155 tracer
1 parent 6f3c846 commit 87a9e65

File tree

3 files changed

+176
-168
lines changed

3 files changed

+176
-168
lines changed

src/ethereum_spec_tools/evm_tools/t8n/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import fnmatch
77
import json
88
import os
9-
from functools import partial
109
from typing import Any, TextIO
1110

1211
from ethereum_rlp import rlp
@@ -25,7 +24,7 @@
2524
parse_hex_or_int,
2625
)
2726
from .env import Env
28-
from .evm_trace.eip3155 import evm_trace
27+
from .evm_trace.eip3155 import Eip3155Tracer
2928
from .t8n_types import Alloc, Result, Txs
3029

3130

@@ -106,8 +105,7 @@ def __init__(
106105
trace_stack = not getattr(self.options, "trace.nostack", False)
107106
trace_return_data = getattr(self.options, "trace.returndata")
108107
trace.set_evm_trace(
109-
partial(
110-
evm_trace,
108+
Eip3155Tracer(
111109
trace_memory=trace_memory,
112110
trace_stack=trace_stack,
113111
trace_return_data=trace_return_data,

0 commit comments

Comments
 (0)