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: type check abi_decode arguments #3623

Merged

Conversation

charles-cooper
Copy link
Member

currently, the following code will trigger a compiler panic:

@external
def foo(j: uint256) -> bool:
    s: bool = _abi_decode(j, bool, unwrap_tuple= False)
    return s

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

currently, the following code will trigger a compiler panic:
```vyper
@external
def foo(j: uint256) -> bool:
    s: bool = _abi_decode(j, bool, unwrap_tuple= False)
    return s
```
Copy link
Contributor

@trocher trocher left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov-commenter
Copy link

codecov-commenter commented Sep 26, 2023

Codecov Report

Merging #3623 (335da2e) into master (d438d92) will increase coverage by 0.30%.
The diff coverage is 100.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##           master    #3623      +/-   ##
==========================================
+ Coverage   88.75%   89.05%   +0.30%     
==========================================
  Files          86       86              
  Lines       11460    11461       +1     
  Branches     2606     2606              
==========================================
+ Hits        10171    10207      +36     
+ Misses        864      832      -32     
+ Partials      425      422       -3     
Files Coverage Δ
vyper/builtins/functions.py 90.59% <100.00%> (+1.49%) ⬆️

... and 3 files with indirect coverage changes

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

@charles-cooper charles-cooper marked this pull request as ready for review September 26, 2023 22:32
@charles-cooper charles-cooper enabled auto-merge (squash) September 26, 2023 22:34
@charles-cooper charles-cooper merged commit 950a97e into vyperlang:master Sep 26, 2023
83 checks passed
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.

None yet

4 participants