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

Disallow self.* calls to public functions - round 2 #1582

Merged
merged 8 commits into from
Aug 25, 2019

Conversation

iamdefinitelyahuman
Copy link
Contributor

What I did

Prevent calls to public functions via self - fixes #1199

This is an amended version of #1561 without the awful mess I made rebasing.

How I did it

  • In vyper/parser/self_call.py, raise StructureException where previously there was a call to call_self_public
  • Update tests
  • Update examples
  • Update documentation

How to verify it

Run the tests.

Description for the changelog

  • Disallow calls to public functions via self

Cute Animal Picture

image

Copy link
Member

@fubuloubu fubuloubu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Carrying over approvals from #1561

@fubuloubu fubuloubu merged commit d21fa8b into vyperlang:master Aug 25, 2019
@iamdefinitelyahuman iamdefinitelyahuman deleted the disallow-self-public branch August 26, 2019 09:34
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.

VIP: Restrict usage of msg fields in public functions
2 participants