-
-
Notifications
You must be signed in to change notification settings - Fork 802
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
fix[lang]: disallow blockhash
in pure
functions
#3157
Open
tserg
wants to merge
35
commits into
vyperlang:master
Choose a base branch
from
tserg:fix/blockhash
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
90747ef
add blockhash to local validation
tserg 393dfed
add test
tserg 3d303c7
fix mypy lint
tserg 439bb78
use StateMutability
tserg 5fadb3b
fix lint
tserg d976d3f
Merge branch 'master' of https://github.com/vyperlang/vyper into fix/…
tserg aa82067
fix merge conflict
tserg cccd707
fix import
tserg 6f193e4
Merge branch 'master' of https://github.com/vyperlang/vyper into fix/…
tserg a0e80ad
clean up imports
tserg b3e4b62
undo blank line
tserg 79e1674
filter for nonpure builtins from namespace
tserg f6f2e91
fetch all call nodes
tserg a5b1924
clean up
tserg b754a1b
undo blank line
tserg eff8438
add interface test
tserg 035a91b
fix lint
tserg 9410901
Merge branch 'master' of https://github.com/vyperlang/vyper into fix/…
tserg f6c95b2
revert merge conflict
tserg 19baa5d
some fixes
tserg a33c7a8
move raw_call check to fetch_call_return
tserg bf26d2e
fix lint
tserg 7ae3018
Merge branch 'master' of https://github.com/vyperlang/vyper into fix/…
tserg c3f2bf6
fix test
tserg 3931761
modify tests
tserg 1895549
add default value
tserg 9e52ecc
Merge branch 'master' into fix/blockhash
charles-cooper dad2c46
apply bts suggestion
tserg ebfe003
revert raw call changes
tserg 4709936
fix lint
tserg e2e9864
Merge branch 'fix/blockhash' of https://github.com/tserg/vyper into f…
tserg b1517b7
Merge branch 'master' of https://github.com/vyperlang/vyper into fix/…
tserg d9e32c7
Merge branch 'master' of https://github.com/vyperlang/vyper into fix/…
tserg 8610908
add blobhash
tserg 36d6ddb
Merge branch 'master' of https://github.com/vyperlang/vyper into fix/…
tserg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need to do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To add builtin function calls to the list of nodes to check. Or should the check for builtin functions be performed elsewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh for some reason i thought the mutability check was performed under visit_Call. i guess this solution is ok for now; i want to get in #2974 first though