Skip to content

Commit 038bf00

Browse files
committed
format
1 parent ba9e567 commit 038bf00

3 files changed

Lines changed: 6 additions & 18 deletions

File tree

packages/testing/src/execution_testing/cli/pytest_commands/plugins/filler/filler.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,9 +1864,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
18641864
# accounts modified during execution.
18651865
fixture.post_state_diff = fixture.post_state
18661866
else:
1867-
group = session.get_pre_alloc_group(
1868-
pre_alloc_hash
1869-
)
1867+
group = session.get_pre_alloc_group(pre_alloc_hash)
18701868
fixture.post_state_diff = (
18711869
calculate_post_state_diff(
18721870
fixture.post_state, group.pre

packages/testing/src/execution_testing/client_clis/transition_tool.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -439,16 +439,10 @@ def _evaluate_filesystem(
439439
diff_path.write_text(
440440
diff.model_dump_json(**model_dump_config)
441441
)
442-
args.extend(
443-
["--input.state-diff", str(diff_path)]
444-
)
445-
args.extend(
446-
["--output.state-diff", output_paths["state_diff"]]
447-
)
442+
args.extend(["--input.state-diff", str(diff_path)])
443+
args.extend(["--output.state-diff", output_paths["state_diff"]])
448444
if self.state_db_root is not None and len(self._state_diffs) == 0:
449-
args.extend(
450-
["--input.state-db-root", self.state_db_root]
451-
)
445+
args.extend(["--input.state-db-root", self.state_db_root])
452446
else:
453447
args.extend(
454448
[
@@ -524,9 +518,7 @@ def _evaluate_filesystem(
524518
if result.returncode != 0:
525519
raise Exception("failed to evaluate: " + result.stderr.decode())
526520

527-
alloc_filename = (
528-
"state-diff.json" if use_state_db else "alloc.json"
529-
)
521+
alloc_filename = "state-diff.json" if use_state_db else "alloc.json"
530522
output = TransitionToolOutput.model_validate_files(
531523
temp_dir_path / "output",
532524
alloc_filename=alloc_filename,

src/ethereum_spec_tools/evm_tools/t8n/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,7 @@ def __init__(
296296
self.options.input_state_diff is not None
297297
and self.options.input_state_db is None
298298
):
299-
raise ValueError(
300-
"--input.state-diff requires --input.state-db."
301-
)
299+
raise ValueError("--input.state-diff requires --input.state-db.")
302300

303301
if self.options.input_state_db is not None:
304302
raise NotImplementedError(

0 commit comments

Comments
 (0)