Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove using_project #40

Merged
merged 5 commits into from
Aug 26, 2024
Merged

feat: remove using_project #40

merged 5 commits into from
Aug 26, 2024

Conversation

Ninjagod1251
Copy link
Contributor

there is a bug with compiling a vyper contract, so i working making it ape compliant

@Ninjagod1251 Ninjagod1251 self-assigned this Aug 19, 2024
@Ninjagod1251
Copy link
Contributor Author

It is not working it, but i am saving my progress

main.py Outdated Show resolved Hide resolved
main.py Outdated Show resolved Hide resolved
main.py Outdated Show resolved Hide resolved
@Ninjagod1251 Ninjagod1251 merged commit e2a01e0 into main Aug 26, 2024
1 check passed
@Ninjagod1251 Ninjagod1251 deleted the feat/fix_bug branch August 26, 2024 23:13
Copy link
Member

@antazoey antazoey left a comment

Choose a reason for hiding this comment

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

should change the exception

@@ -186,6 +186,7 @@ async def compile_project(project_root: Path, manifest: PackageManifest):
path.parent.mkdir(parents=True, exist_ok=True)
path.write_text(source.fetch_content())
project = Project(project_root)
project.load_contracts()
try:
compiled_manifest = project.extract_manifest()
results[project_root.name] = compiled_manifest
Copy link
Member

Choose a reason for hiding this comment

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

VyperCompilerError should probably be CompilerError now on 0.8:

https://github.com/ApeWorX/ape/blob/main/src/ape/managers/compilers.py#L160-L163
(

if errors:
            formatted_errors = [f"{e}" for e in errors]
            error_message = "\n\n".join(formatted_errors)
            raise CompilerError(error_message)

)

because all compiler-api errors get wrapped up in the end into a single CompilerError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants