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

Allowing tests to import interfaces from all project folders #19

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

pyrex41
Copy link

@pyrex41 pyrex41 commented Dec 30, 2022

adding -p flag to specify project directory so that tests can import contract interfaces seamlessly. See https://vyper.readthedocs.io/en/stable/compiling-a-contract.html#importing-interfaces.

Now, you import your contract interfaces into the test more simply: from src import MyContract. You could also easily add additional interfaces in another folder, so long is it is somewhere within the project directory.

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