Skip to content

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

Merged
fubuloubu merged 2 commits into
vyperlang:masterfrom
iamdefinitelyahuman:import-implements-bugfix
Dec 22, 2019
Merged

Bugfix - Importing an interface that contains an 'implements' statement#1774
fubuloubu merged 2 commits into
vyperlang:masterfrom
iamdefinitelyahuman:import-implements-bugfix

Conversation

@iamdefinitelyahuman

Copy link
Copy Markdown
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
Copy Markdown
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