ethereum / ethereum/py-solc

Can't compile without AST

Open
#56 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
195
Forks
77
PR merge metrics
No merged PRs in 30d

Description

* `py-solc` Version: 3.1.0

### What was wrong?

Calling `compile_source()` or `compile_files()` without including `ast` in the `output_values` parameter causes a `KeyError` here: https://github.com/ethereum/py-solc/blob/d0a9efad5a38c7b4143fb9c83b7dd0f5d1a88656/solc/main.py#L69

The reason is that `_parse_compiler_output()` unconditionally expects `sources` to be in the `solc` output json which isn't the case when `ast` isn't included.

#### Cute Animal Picture

![](https://pbs.twimg.com/media/DhIqLIZVAAAyHA4.jpg)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.