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

Adjust compile path #427

Merged
merged 1 commit into from
Apr 20, 2020
Merged

Adjust compile path #427

merged 1 commit into from
Apr 20, 2020

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

In the compiler, use the project root folder as allow_paths rather than ./contracts. This allows interface imports without using the interface_sources kwarg. Re: conversation on Gitter, it also ensures a more expressive error message when an interface import will not work.

interface_sources was a solution added prior to the allowing path remappings. Now that it's possible to import from anywhere, interface_sources seems less useful and is a good candidate for removal in v2.0

How to verify it

Run tests.

by modifying allow_paths to use the project root folder, interfaces
may be included in projects without use of the interface_sources
kwarg. this also allows more expressive error messages when importing
an interface fails.
@iamdefinitelyahuman iamdefinitelyahuman merged commit edf8b74 into master Apr 20, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the interface-paths branch April 20, 2020 10:17
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.

1 participant