We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ac11ee commit 8fdc90eCopy full SHA for 8fdc90e
crytic_compile/platform/vyper.py
@@ -35,7 +35,7 @@ class VyperStandardJson(AbstractPlatform):
35
TYPE = Type.VYPER
36
37
def __init__(self, target: Optional[Path] = None, **_kwargs: str):
38
- super().__init__(target, **_kwargs)
+ super().__init__(str(target), **_kwargs)
39
self.standard_json_input = {
40
"language": "Vyper",
41
"sources": {},
@@ -123,7 +123,7 @@ def add_source_files(self, file_paths: List[str]) -> None:
123
124
for file_path in file_paths:
125
with open(file_path, "r", encoding="utf8") as f:
126
- self.standard_json_input["sources"][file_path] = {
+ self.standard_json_input["sources"][file_path] = { # type: ignore
127
"content": f.read(),
128
}
129
0 commit comments