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

Vyper nonpayable heuristic #979

Merged
merged 2 commits into from
Mar 2, 2021
Merged

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

Adjust the heuristic for nonpayable reverts in vyper 0.2.11

Related issue: #

How I did it

In Vyper 0.2.11 the nonpayable check no longer always happens immediately upon entering the contract, it instead happens after the last payable function. I've adjusted the logic for the heuristic to be a bit looser, it checks any REVERT without the source map instead of only at the very beginning of the contract.

How to verify it

Confirm the tests are now passing. This is the reason for failing CI on several open PRs.

@iamdefinitelyahuman iamdefinitelyahuman merged commit dca6427 into master Mar 2, 2021
@iamdefinitelyahuman iamdefinitelyahuman deleted the fix-vyper-nonpayable branch March 2, 2021 00:24
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.

1 participant