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

fix: kwargs passed to validate_call_args #3568

Merged

Conversation

charles-cooper
Copy link
Member

@charles-cooper charles-cooper commented Aug 27, 2023

validate_call_args takes kwargs, the list of valid keywords as an argument and makes sure that when a call is made, the given keywords are valid according to the passed kwargs. however, vyper does not allow kwargs when calling internal functions, so we should actually pass no kwargs to validate_call_args.

note that this PR does not actually introduce observed changes in compiler behavior, as the later check in fetch_call_return correctly validates there are no call site kwargs for internal functions.

chainsec june 2023 review 5.7

What I did

How I did it

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-->

`validate_call_args` takes kwargs, the list of valid keywords as an
argument and makes sure that when a call is made, the given keywords are
valid according to the passed kwargs. however, vyper does not allow
kwargs when calling internal functions, so we should actually pass no
kwargs to `validate_call_args`.

note that this PR does not actually introduce observed changes in
compiler behavior, as the later check in `fetch_call_return` correctly
validates there are no call site kwargs for internal functions.

chainsec june review 5.7
@codecov-commenter
Copy link

codecov-commenter commented Aug 27, 2023

Codecov Report

Merging #3568 (471c509) into master (43c8d85) will decrease coverage by 0.03%.
Report is 2 commits behind head on master.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##           master    #3568      +/-   ##
==========================================
- Coverage   89.13%   89.10%   -0.03%     
==========================================
  Files          85       85              
  Lines       11365    11365              
  Branches     2585     2584       -1     
==========================================
- Hits        10130    10127       -3     
- Misses        813      816       +3     
  Partials      422      422              
Files Changed Coverage Δ
vyper/semantics/types/function.py 85.01% <100.00%> (-1.63%) ⬇️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@charles-cooper charles-cooper changed the title chore: fix args passed to validate_call_args fix: kwargs passed to validate_call_args Aug 31, 2023
@charles-cooper charles-cooper merged commit 6a819b1 into vyperlang:master Aug 31, 2023
76 of 77 checks passed
@charles-cooper charles-cooper deleted the chore/fix-kwarg-key-check branch August 31, 2023 20:20
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.

3 participants