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

Sample Contract interaction outdated and erroring #2020

Closed
PatrickAlphaC opened this issue Jun 9, 2021 · 3 comments
Closed

Sample Contract interaction outdated and erroring #2020

PatrickAlphaC opened this issue Jun 9, 2021 · 3 comments

Comments

@PatrickAlphaC
Copy link

  • Version: 5.19.0
  • Python: 3.9
  • OS: macOs big sur 11.4
web3==5.19.0

The sample example is giving me the following warning and error:

UserWarning: Ethereum Tester: No backend was explicitely set, and no *full* backends were available.  Falling back to the `MockBackend` which does not support all EVM functionality.  Please refer to the `eth-tester` documentation for information on what backends are available and how to set them.
File "/Users/patrick/code/web3_py_fund_me/Greeter.py", line 61, in <module>
    tx_hash = Greeter.constructor().transact()
.
.
.
raw_gas_estimate = self.backend.estimate_gas(raw_transaction, raw_block_number)
TypeError: estimate_gas() takes 2 positional arguments but 3 were given

How can it be fixed?

I feel this example should be updated to a working version. It appears we are using an outdated version of something.

@wolovim
Copy link
Member

wolovim commented Jun 9, 2021

Thanks for reporting @PatrickAlphaC. Does look like we can use some modernization here. I doubt there are many users compiling their contracts in-line like this, but those that are probably should use the more up-to-date py-solc-x. PR's welcome to make this example current; otherwise one of us will circle back to it as we're able.

@divyanshugit
Copy link

Hey, @marcgarreau I would love to work on this. Can you please assign this issue to me? It will great If you can provide a little bit more info about this. I think it will be great for me to getting started with ethereum :)

@fselmo
Copy link
Collaborator

fselmo commented Jun 14, 2021

Hey @divyanshugit. Thanks for the interest on this!

I ended up pulling this issue in my workload at the end of last week and am going to put up a PR this morning. There are some other issues that may be good for getting started in our issues list. I recommend checking out other issues with the "Good First Issue" tag.

fselmo added a commit to fselmo/web3.py that referenced this issue Jun 14, 2021
… use solcx over solc since solc is no longer supported.
fselmo added a commit to fselmo/web3.py that referenced this issue Jun 14, 2021
…solc-x to install solc since py solc library is no longer maintained.
fselmo added a commit to fselmo/web3.py that referenced this issue Jun 14, 2021
…solc-x.

- Modernization of contract deployment docs. Use py-solc-x to download and install precompiled solidity compuiler, solc, since py solc library is no longer maintained.
fselmo added a commit to fselmo/web3.py that referenced this issue Jun 14, 2021
…solc-x.

- Modernization of contract deployment docs. Use py-solc-x to download and install precompiled solidity compuiler, solc, since py solc library is no longer maintained.
fselmo added a commit to fselmo/web3.py that referenced this issue Jun 14, 2021
…solc-x.

- Modernization of contract deployment docs. Use py-solc-x to download and install precompiled solidity compuiler, solc, since py solc library is no longer maintained.
fselmo added a commit to fselmo/web3.py that referenced this issue Jun 14, 2021
…solc-x.

- Modernization of contract deployment docs. Use py-solc-x to download and install precompiled solidity compiler solc since py solc library is no longer maintained.
fselmo added a commit to fselmo/web3.py that referenced this issue Jun 14, 2021
…solc-x.

- Modernization of contract deployment docs. Use py-solc-x to download and install precompiled solidity compiler solc since py solc library is no longer maintained.
fselmo added a commit to fselmo/web3.py that referenced this issue Jun 14, 2021
…solc-x.

- Modernization of contract deployment docs. Use py-solc-x to download and install precompiled solidity compiler solc since py solc library is no longer maintained.
@fselmo fselmo closed this as completed in 588e0c0 Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants