Skip to content

Only rewrite bytes32 when they are literals#1718

Merged
jacqueswww merged 3 commits into
vyperlang:masterfrom
charles-cooper:fix_bytes32_assign
Nov 12, 2019
Merged

Only rewrite bytes32 when they are literals#1718
jacqueswww merged 3 commits into
vyperlang:masterfrom
charles-cooper:fix_bytes32_assign

Conversation

@charles-cooper
Copy link
Copy Markdown
Member

What I did

Fix #1717

How I did it

There is a rewrite rule but was only intended for literals.

How to verify it

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@charles-cooper charles-cooper changed the title Only rewrite bytes32 when they are literals [WIP] Only rewrite bytes32 when they are literals Nov 11, 2019
@charles-cooper charles-cooper changed the title [WIP] Only rewrite bytes32 when they are literals Only rewrite bytes32 when they are literals Nov 11, 2019
The assignment should be disallowed if the RHS is not a literal.
Copy link
Copy Markdown
Contributor

@jacqueswww jacqueswww left a comment

Choose a reason for hiding this comment

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

LGTM

@jacqueswww jacqueswww merged commit 6487cee into vyperlang:master Nov 12, 2019
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.

Attempting to set a variable = raw_call gives me a compiler bug AttributeError

3 participants