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: allow use of slice with bytes32 in calldata #2227

Merged
merged 3 commits into from
Nov 27, 2020

Conversation

iamdefinitelyahuman
Copy link
Contributor

What I did

Allow slicing bytes32 calldata variables.

Fixes #2200

How I did it

In vyper/parser/parser_utils.py::make_byte_slice_copier, added calldata as a valid source location.

How to verify it

Run the tests. I've added some new cases for this functionality.

Cute Animal Picture

image

@fubuloubu fubuloubu merged commit 17ea3ff into vyperlang:master Nov 27, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the fix-slice-bytes32 branch November 27, 2020 15:14
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.

Cannot use slice on bytes32 in calldata
2 participants