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

Bugfix - Importing an interface that contains an 'implements' statement #1774

Merged

Conversation

iamdefinitelyahuman
Copy link
Contributor

The Issue

When importing a Vyper contract as an interface, a StructureException is raised if that file includes an implements statement.

How I fixed it

In vyper/signatures/interface.py, I modified extract_sigs to exclude AST nodes related to implements.

How to verify it

Run the tests. I added a new test case around this behavior.

Cute Animal Picture

image

@jacqueswww
Copy link
Contributor

LGTM

@fubuloubu fubuloubu merged commit a83a781 into vyperlang:master Dec 22, 2019
@iamdefinitelyahuman iamdefinitelyahuman deleted the import-implements-bugfix branch December 22, 2019 18:00
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