vyperlang / vyper

Pythonic Smart Contract Language for the EVM
https://vyperlang.org
Other
4.91k stars 803 forks source link

fix[lang]: forbid calling __default__ #4371

Open sandbubbles opened 6 days ago

sandbubbles commented 6 days ago

What I did

Forbid calling __default__ by staticcall and extcall. Depends on https://github.com/vyperlang/vyper/pull/4090. Edit: Added dependency on the PR.

How I did it

In validate functions check the attribute name if present.

How to verify it

Commit message

Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)

Description for the changelog

Cute Animal Picture

![Put a link to a cute animal picture inside the parenthesis-->]()