Skip to content

Commit 3287611

Browse files
authored
fixed bug where --trace would never be enabled for geth's evm (#2012)
1 parent 75f51bc commit 3287611

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ethereum_clis/clis/geth.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ class GethEvm(EthereumCLI):
9696
default_binary = Path("evm")
9797
detect_binary_pattern = re.compile(r"^evm(.exe)? version\b")
9898
cached_version: Optional[str] = None
99+
trace: bool
99100

100101
def __init__(
101102
self,
@@ -172,7 +173,9 @@ def __init__(
172173
if not exception_mapper:
173174
exception_mapper = GethExceptionMapper()
174175
GethEvm.__init__(self, binary=binary, trace=trace)
175-
TransitionTool.__init__(self, binary=binary, exception_mapper=exception_mapper)
176+
TransitionTool.__init__(
177+
self, binary=binary, exception_mapper=exception_mapper, trace=trace
178+
)
176179
help_command = [str(self.binary), str(self.subcommand), "--help"]
177180
result = self._run_command(help_command)
178181
self.help_string = result.stdout

0 commit comments

Comments
 (0)