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

returning bytecode by setting output_values #139

Open
john012343210 opened this issue Jan 2, 2022 · 1 comment
Open

returning bytecode by setting output_values #139

john012343210 opened this issue Jan 2, 2022 · 1 comment

Comments

@john012343210
Copy link

john012343210 commented Jan 2, 2022

hi ,

>>> import solcx
>>> solcx.compile_source(
...     "contract Foo { function bar() public { return; } }",
...     output_values=["abi", "bin-runtime"],
...     
... )
``` works fine

but ,

import solcx
solcx.compile_source(
... "contract Foo { function bar() public { return; } }",
... output_values=["abi", "bytecode"],
...
... )


 is not ok 
@pacrob
Copy link

pacrob commented Jan 6, 2022

Available output_values are parsed from the solc help file. For solc v0.8.11, the line is:

--combined-json abi,asm,ast,bin,bin-runtime,devdoc,function-debug,function-debug-runtime,generated-sources,generated-sources-runtime,hashes,metadata,opcodes,srcmap,srcmap-runtime,storage-layout,userdoc

No bytcode there - maybe you want bin?

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