Skip to content

Commit b85cff5

Browse files
authored
fix(specs,transition_tool): Trace dump fixes (#700)
* fix(evm_transition_tool): trace collection * fix(specs): Fix trace dump dir in EOFStateTest
1 parent c332ee1 commit b85cff5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/ethereum_test_specs/eof.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ def generate_state_test(self) -> StateTest:
349349
tx=tx,
350350
env=self.env,
351351
post=post,
352+
t8n_dump_dir=self.t8n_dump_dir,
352353
)
353354

354355
def generate(

src/evm_transition_tool/transition_tool.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,13 @@ def _evaluate_filesystem(
365365
continue
366366
with open(file_path, "r+") as file:
367367
output_contents[key] = json.load(file)
368-
368+
output = TransitionToolOutput(**output_contents)
369369
if self.trace:
370-
self.collect_traces(output_contents["result"]["receipts"], temp_dir, debug_output_path)
370+
self.collect_traces(output.result.receipts, temp_dir, debug_output_path)
371371

372372
temp_dir.cleanup()
373373

374-
return TransitionToolOutput(**output_contents)
374+
return output
375375

376376
def _evaluate_stream(
377377
self,

0 commit comments

Comments
 (0)