Skip to content

Commit

Permalink
pypechain: use fstrings (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
wakamex authored Sep 7, 2023
1 parent cb9ab5a commit 1e0748b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pypechain/pypechain/run_pypechain.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def main(abi_file_path: str, output_dir: str) -> None:
# TODO: events

# Write the renders to a file
types_output_file_path = Path(output_dir).joinpath(contract_name + "Types.py")
contract_output_file_path = Path(output_dir).joinpath(contract_name + "Contract.py")
types_output_file_path = Path(output_dir).joinpath(f"{contract_name}Types.py")
contract_output_file_path = Path(output_dir).joinpath(f"{contract_name}Contract.py")
with open(contract_output_file_path, "w", encoding="utf-8") as output_file:
output_file.write(rendered_contract_code)
with open(types_output_file_path, "w", encoding="utf-8") as output_file:
Expand Down

1 comment on commit 1e0748b

@vercel
Copy link

@vercel vercel bot commented on 1e0748b Sep 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.