Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/cli/eofwrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@


@click.command()
@click.argument("input", type=click.Path(exists=True, dir_okay=True, file_okay=True))
@click.argument("input_path", type=click.Path(exists=True, dir_okay=True, file_okay=True))
@click.argument("output_dir", type=click.Path(dir_okay=True, file_okay=False))
@click.option("--traces", is_flag=True, type=bool)
def eof_wrap(input_path: str, output_dir: str, traces: bool):
Expand Down Expand Up @@ -169,7 +169,16 @@ def wrap_file(self, in_path: str, out_path: str, traces: bool):
return

with open(in_path, "r") as input_file:
fixtures = BlockchainFixtures.from_json_data(json.load(input_file))
data = json.load(input_file)
# TODO: temp solution until `ethereum/tests` are updated with the FixtureConfig
for _, f in data.items():
if isinstance(f, dict) and "config" not in f:
network = f.get("network")
f["config"] = {
"chainid": "0x1",
"network": network,
}
fixtures = BlockchainFixtures.from_json_data(data)

out_fixtures = BaseFixturesRootModel({})
fixture: BlockchainFixture
Expand Down
Loading