Skip to content

Fix: allow use of slice with bytes32 in calldata#2227

Merged
fubuloubu merged 3 commits into
vyperlang:masterfrom
iamdefinitelyahuman:fix-slice-bytes32
Nov 27, 2020
Merged

Fix: allow use of slice with bytes32 in calldata#2227
fubuloubu merged 3 commits into
vyperlang:masterfrom
iamdefinitelyahuman:fix-slice-bytes32

Conversation

@iamdefinitelyahuman

Copy link
Copy Markdown
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