Skip to content

Improve exception on incorrect interface#2131

Merged
fubuloubu merged 1 commit into
vyperlang:masterfrom
iamdefinitelyahuman:fix-interface-exceptions
Aug 19, 2020
Merged

Improve exception on incorrect interface#2131
fubuloubu merged 1 commit into
vyperlang:masterfrom
iamdefinitelyahuman:fix-interface-exceptions

Conversation

@iamdefinitelyahuman

Copy link
Copy Markdown
Contributor

What I did

Improve the error message when using a 0.1.x style interface.

How I did it

  • If an interface contains constant or modifying, inform the user to change it to view/pure or payable/nonpayable.
  • If an interface is completely wrong, ensure the annotation points at the body

How to verify it

Make sure tests are passing.

Cute Animal Picture

image

@fubuloubu fubuloubu merged commit 0879886 into vyperlang:master Aug 19, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the fix-interface-exceptions branch August 19, 2020 12:59
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.

2 participants