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

Serialize AST #2123

Merged
merged 2 commits into from
Jul 31, 2020
Merged

Conversation

iamdefinitelyahuman
Copy link
Contributor

@iamdefinitelyahuman iamdefinitelyahuman commented Jul 29, 2020

What I did

Ensure AST nodes as dicts are serializable. Fixes #2121

How I did it

  • Add unique to_dict and __init__ logic on the Decimal and Bytes nodes.
  • Expand the test case around this behavior to also include creating and loading a JSON string based on the AST-dict.

How to verify it

Run tests.

Cute Animal Picture

image

@fubuloubu fubuloubu merged commit 444666a into vyperlang:master Jul 31, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the fix-serialize-ast branch October 9, 2020 17:36
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.

Vyper can't serialize ast for programs that contain decimal literals
2 participants