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

Can't compile without AST #56

Open
ulope opened this issue Jul 6, 2018 · 1 comment
Open

Can't compile without AST #56

ulope opened this issue Jul 6, 2018 · 1 comment

Comments

@ulope
Copy link
Member

ulope commented Jul 6, 2018

  • 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

@yxliang01
Copy link

yxliang01 commented Jan 6, 2019

Same goes to abi. You can't compile without outputting abi...
Problematic code:

data['abi'] = json.loads(data['abi'])

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

No branches or pull requests

2 participants