Skip to content

Commit

Permalink
fix(specs,transition_tool): Trace dump fixes (#700)
Browse files Browse the repository at this point in the history
* fix(evm_transition_tool): trace collection

* fix(specs): Fix trace dump dir in EOFStateTest
  • Loading branch information
marioevz authored Jul 23, 2024
1 parent c332ee1 commit b85cff5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/ethereum_test_specs/eof.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ def generate_state_test(self) -> StateTest:
tx=tx,
env=self.env,
post=post,
t8n_dump_dir=self.t8n_dump_dir,
)

def generate(
Expand Down
6 changes: 3 additions & 3 deletions src/evm_transition_tool/transition_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,13 +365,13 @@ def _evaluate_filesystem(
continue
with open(file_path, "r+") as file:
output_contents[key] = json.load(file)

output = TransitionToolOutput(**output_contents)
if self.trace:
self.collect_traces(output_contents["result"]["receipts"], temp_dir, debug_output_path)
self.collect_traces(output.result.receipts, temp_dir, debug_output_path)

temp_dir.cleanup()

return TransitionToolOutput(**output_contents)
return output

def _evaluate_stream(
self,
Expand Down

0 comments on commit b85cff5

Please sign in to comment.