PatrickAlphaC / web3_py_simple_storage

47 stars 78 forks source link

Update deploy.py #21

Closed lbenevento closed 2 years ago

PatrickAlphaC commented 2 years ago

What is this for?

lbenevento commented 2 years ago

web3.exceptions.ExtraDataLengthError: The field extraData is 97 bytes, but should be 32. It is quite likely that you are connected to a POA chain. Refer to http://web3py.readthedocs.io/en/stable/middleware.html#geth-style-proof-of-authority for more details. The full extraData is: HexBytes('0x696e667572612e696f000000000000000000000000000000000000000000000025554ffcf985fe8bfbd390015fb479713c85822594e2247bc1b631af6126a1d9765b176fd01ef33a66d11fd09e8ea40e327ba942fe6855f18dc57d14a44a330000')

Without that we get this error. As far as I understood it depends on a discrepancy in PoA standards. Here is some info: https://web3py.readthedocs.io/en/stable/middleware.html#why-is-geth-poa-middleware-necessary

PatrickAlphaC commented 2 years ago

Interesting... is this an error from kovan? I'm not sure anyone else is getting this... Thanks for the PR... Maybe we make it an optional comment?

lbenevento commented 2 years ago

It's not from Kovan, I'm using the rinkeby.infura.io/v3 https api. As I previously said I'm no expert at all so if you think making it a comment is the way to go I can just change the pull request to specify which error these two lines are supposed to fix!