diff --git a/ape_vyper/compiler.py b/ape_vyper/compiler.py index 5cd6ed52..49f37da6 100644 --- a/ape_vyper/compiler.py +++ b/ape_vyper/compiler.py @@ -665,7 +665,7 @@ def flatten_contract(self, path: Path, base_path: Optional[Path] = None) -> Cont Returns the flattened contract suitable for compilation or verification as a single file """ source = self._flatten_source(path, base_path, path.name) - return Content({i: ln for i, ln in enumerate(source.split("\n"))}) + return Content({i: ln for i, ln in enumerate(source.splitlines())}) def get_version_map( self, contract_filepaths: Sequence[Path], base_path: Optional[Path] = None