Skip to content

Can't compile without AST #56

@ulope

Description

@ulope
  • 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:

sources = output['sources']

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions