Skip to content

Commit

Permalink
capitalize the first letter but leave the rest the same
Browse files Browse the repository at this point in the history
  • Loading branch information
sandbubbles committed Oct 25, 2024
1 parent fcfc2ec commit 60dddd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/compiler/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def build_external_interface_output(compiler_data: CompilerData) -> str:
stem = PurePath(compiler_data.contract_path).stem
# capitalize words separated by '_'
# ex: test_interface.vy -> TestInterface
name = "".join([x.capitalize() for x in stem.split("_")])
name = "".join([x[0].upper() + x[1:] for x in stem.split("_")])
out = f"\n# External Interfaces\ninterface {name}:\n"

for func in interface.functions.values():
Expand Down

0 comments on commit 60dddd4

Please sign in to comment.