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

Example contract deployment in the documentation does not work, here's the fix #2646

Closed
mathstream opened this issue Sep 14, 2022 · 2 comments · Fixed by #2653
Closed

Example contract deployment in the documentation does not work, here's the fix #2646

mathstream opened this issue Sep 14, 2022 · 2 comments · Fixed by #2653

Comments

@mathstream
Copy link

  • Version: 5.30.0
  • Python: 3.9.10
  • OS: OSX 12.0

What was wrong?

I copy / pasted the example on https://web3py.readthedocs.io/en/stable/examples.html#deploying-new-contracts
(Exactly the steps under Contract Deployment Example)

The Solidity compiler gets a return code 0 and prints "solcx.exceptions.SolcError: An error occurred during execution"
and then a list of command line options.


Now, if I change change the line:
return compile_source(source)
to:
return compile_source(source, output_values=['abi', 'bin'])

then it will compile and run OK.


Found this kinda by accident, I was trying to connect and deploy on Polygon Edge (no success so far) and started pulling things apart to examine each step.

@kclowes
Copy link
Collaborator

kclowes commented Sep 14, 2022

Thank you! If you have the time to make a PR, we'd be very grateful!

@Kaushik-Iyer
Copy link
Contributor

Can I work on this? I just have to change that particular line in the docs right?

pacrob pushed a commit that referenced this issue Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants